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

Add instructions for deploying on Digital Ocean VPS

Open taylor-lindores-reeves opened this issue 4 years ago • 2 comments

Would like some instructions on using this on Ubuntu 20.04 Droplet with NodeJs. Struggling to get this live. After running yarn build (which seems to be killed midway through) and then yarn start in production environment, I keep getting this error:

Could not find a production build in the '/var/www/example.com/.next' directory. Try building your app with 'next build' before starting the production server.

Would appreciate a tutorial on showing how this can be done.

taylor-lindores-reeves avatar Feb 12 '22 17:02 taylor-lindores-reeves

What droplet size are you trying to use? Might be worth trying temporarily on something with more memory.

vincro avatar Feb 20 '22 11:02 vincro

What droplet size are you trying to use? Might be worth trying temporarily on something with more memory.

Funnily enough, I was using the most basic droplet. So I've resized the droplet to a more reasonable size and now I've rebuilt using yarn build and it worked! So thank you.

However, and maybe you can help me here - every time I use yarn build (blitz build) it seems to do a heap of logging before just simply displaying the build output (as it would with next build). See this image. Do I have some logging flag set somewhere or something? Seems to be something to do with TypeScript.

taylor-lindores-reeves avatar Feb 20 '22 12:02 taylor-lindores-reeves