blitzjs.com icon indicating copy to clipboard operation
blitzjs.com copied to clipboard

Add docs for deploying to DigitalOcean App Platform

Open LoriKarikari opened this issue 4 years ago • 4 comments

I have created some documentation on how to deploy to DigitalOcean App Platform. I'm going to reread it and fix some stuff when needed so I'm leaving it as a draft for now.

Some notes:

  • the build command I had to use is npx blitz db migrate && npx blitz build because otherwise, it throws an error that the command is not found. I tried adding a PATH variable and I was able to use the blitz command but the run command would fail so I left it out.
  • the run command is npx next start because I was encountering the same issue as seen with Heroku where Blitz rebuilds. This is because some files are added during the build. I haven't figured out yet which files so this has to do for now.

Closes #240

LoriKarikari avatar Nov 06 '20 19:11 LoriKarikari

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

blitzjs-com – ./

🔍 Inspect: https://vercel.com/blitzjs/blitzjs-com/frx19eddh
✅ Preview: https://blitzjs-com-git-deploy-digitalocean.blitzjs.vercel.app

blitzjs-com-new – ./new-site

🔍 Inspect: https://vercel.com/blitzjs/blitzjs-com-new/dmvq1zb7r
✅ Preview: https://blitzjs-com-new-git-deploy-digitalocean.blitzjs.vercel.app

vercel[bot] avatar Nov 06 '20 19:11 vercel[bot]

Yeah on CI you need to run npm run blitz start, yarn blitz start, or npx blitz start since blitz isn't installed globally. Or use package.json scripts

flybayer avatar Nov 06 '20 20:11 flybayer

Hey @LoriKarikari were you finished with this? (Still marked as Draft)

flybayer avatar Jan 08 '21 21:01 flybayer

Hey @LoriKarikari were you finished with this? (Still marked as Draft)

Hi, I think some things changed since I created this because App Platform is fairly new. I'm not using it anymore since it didn't suit my needs so I forgot about it, sorry for that. I'll check if something has changed and remove the draft.

LoriKarikari avatar Jan 15 '21 13:01 LoriKarikari