Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for deploying on Digital Ocean VPS #658

Open
taylor-lindores-reeves opened this issue Feb 12, 2022 · 2 comments
Open

Add instructions for deploying on Digital Ocean VPS #658

taylor-lindores-reeves opened this issue Feb 12, 2022 · 2 comments

Comments

@taylor-lindores-reeves
Copy link

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.

@vincro
Copy link

vincro commented Feb 20, 2022

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

@taylor-lindores-reeves
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants