cli: [Bug]: Build failed with digital ocean apps

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

Build should work

Actual behavior

image

Verbose output

$ NODE_ENV=production remix build
 info  building... (NODE_ENV=production)
 info  built (938ms)
✨  Done in 1.92s.

Reproduction steps

  1. Generate app
  2. Deploy to Digital Ocean Apps
  3. Encounter error

Operating System

Mac OS Monterey

Shopify CLI version (check your project’s package.json if you’re not sure)

^3.48.0

Shell

Vscode terminal

Node version (run node -v if you’re not sure)

v16.19.0

What language and version are you using in your application?

Node v16.19.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

This issue is still not fixed. +1 on the requests for docs on DO deployments

I’ve had the same issue with a heroku deployment and managed to solve it by:

  1. Deleting the failed migration from the DB
  2. Had to change "expires" DATETIME to "expires" TIMESTAMP in the migration.sql file
  3. Adding this to the scripts in package json:
"prisma": "prisma",
"setup": "prisma generate && prisma migrate deploy",
  1. Migrate manually by running heroku run npm run setup through heroku cli, there should be a possibility to do this in DA via and admin console as well i suppose.

Maybe this helps 🤞

I’m also running into this issue (Prisma Session table does not exist) when deploying to a DO app. I was finally able to successfully deploy with the following configuration and after having pushed dev.sqlite to my repo, but this is far from ideal… Seconding the request for documentation on this.

# RUN rm prisma/dev.sqlite
RUN npx prisma generate
RUN npx prisma migrate deploy

Hi team,

Still need a document/guide steps to deploy on digital ocean apps.

Thank you