How to Deploy a Shopify Remix App on DigitalOcean?

I’m trying to deploy my Shopify app built with Remix.run on DigitalOcean, but I’m running into issues during deployment. Here’s what I’m using:

  • App Framework: Remix.run
  • Backend: Shopify Admin API
  • Database: Prisma (planning to migrate to Supabase)
  • Hosting: DigitalOcean (App Platform)

During deployment, I encountered the following error log:

2025-01-07T08:17:29.069697873Z Prisma schema loaded from prisma/schema.prisma
2025-01-07T08:17:29.151175739Z Datasource "db": PostgreSQL database "defaultdb", schema "public" at "iconic-sections-db-do-user-9287650-0.d.db.ondigitalocean.com:25060"
2025-01-07T08:17:29.800761665Z 
2025-01-07T08:17:29.801880436Z 22 migrations found in prisma/migrations
2025-01-07T08:17:29.802435689Z 
2025-01-07T08:17:29.980746113Z 
2025-01-07T08:17:29.981161966Z No pending migrations to apply.
2025-01-07T08:17:31.839305810Z 
2025-01-07T08:17:31.839339406Z > start
2025-01-07T08:17:31.839345437Z > remix-serve ./build/index.js
2025-01-07T08:17:31.839348232Z 
2025-01-07T08:17:35.195105252Z [shopify-api/WARNING] Loading REST resources for API version 2024-04, which doesn't match the default 2025-01
2025-01-07T08:17:35.219583546Z [shopify-api/INFO] version 10.0.0, environment Remix
2025-01-07T08:17:35.229630764Z [shopify-app/INFO] Future flag v3_authenticatePublic is disabled.
2025-01-07T08:17:35.229661707Z 
2025-01-07T08:17:35.229667504Z   Enable this flag to allow appProxy and checkout in `shopify.authenticate.public`.
2025-01-07T08:17:35.229670315Z 
2025-01-07T08:17:35.230001714Z [shopify-app/INFO] Future flag v3_lineItemBilling is disabled.
2025-01-07T08:17:35.230013957Z 
2025-01-07T08:17:35.230018259Z   Enable this flag to allow billing plans with multiple line items.
2025-01-07T08:17:35.230020241Z 
2025-01-07T08:17:35.230251380Z [shopify-app/INFO] Future flag v3_webhookAdminContext is disabled.
2025-01-07T08:17:35.230273706Z 
2025-01-07T08:17:35.230278228Z   Enable this flag to use the standard Admin context when calling `shopify.authenticate.webhook`.
2025-01-07T08:17:35.230281300Z 
2025-01-07T08:17:35.230460080Z [shopify-app/INFO] Future flag unstable_newEmbeddedAuthStrategy is disabled.
2025-01-07T08:17:35.230849352Z 
2025-01-07T08:17:35.230853462Z   Enable this to use OAuth token exchange instead of auth code to generate API access tokens.
2025-01-07T08:17:35.230857687Z   Your app must be using Shopify managed install: https://shopify.dev/docs/apps/auth/installation
2025-01-07T08:17:35.230859818Z 
2025-01-07T08:17:38.712271226Z Error: getaddrinfo ENOTFOUND https://google.com
2025-01-07T08:17:38.712320468Z     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)                                

I’ve followed these steps for deployment:

  1. Built the Remix app using npm run build.
  2. Created a new app on DigitalOcean and connected my GitHub repository.
  3. Set environment variables such as SHOPIFY_API_KEY, SHOPIFY_API_SECRET, etc.
  4. Configured the build and start commands in the DigitalOcean settings.