blitzjs.com
blitzjs.com copied to clipboard
Add docs for deploying to DigitalOcean App Platform
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 theblitz
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
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
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
Hey @LoriKarikari were you finished with this? (Still marked as Draft)
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.