Control Web Panel

WebPanel => Aplications => Topic started by: dferraro152 on July 20, 2022, 12:48:09 PM

Title: Deploy Next.js app
Post by: dferraro152 on July 20, 2022, 12:48:09 PM
Hi:
Im 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?
           

           
Title: Re: Deploy Next.js app
Post by: josemnunez on July 21, 2022, 02:41:06 PM
Hello

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