Deploy Next.js app

Started by dferraro152, July 20, 2022, 12:48:09 PM

Previous topic - Next topic

dferraro152

Hi:
I´m try deploy a next.js app.
Step 1:
           Create a virtual server with Apache pointing to my site (I put a test page and work OK).
Step 2:
           copy the next.js files to the public_html of site.
Step 3:
           npm install
           npm run build
           pm2 start --name app-name  npm -- start
When  I try enter to site the browser give me an error 503:

           Service Unavailable
           The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

What I do wrong? And how can I resolve the issue?
           

           

josemnunez

Hello

Please friend, use the nodejs module that comes in the admin to deploy your app