Author Topic: Deploy Next.js app  (Read 302 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Deploy Next.js app
« 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?
           

           

Offline
*
Re: Deploy Next.js app
« Reply #1 on: July 21, 2022, 02:41:06 PM »
Hello

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