I am completely a noob to Nuxt.js.
I have created a nuxt.js app without any custom server such as express. I would like to upload to my web server Plesk Onyx. How do I do this?
I read few different ways that this can be done such as using docker or just deploying it directly as stated here. I don’t know how to use docker so I chose that latter method and wasn’t successful.
Can anyone direct me how to deploy it nuxt app correctly on a web server such Plesk Onyx?
Let me know if you require further information.
Thank you.
2
Answers
I did not check
Plesk Onyx
But I assume that
Plesk Onyx
gives youVPN
with root accessWhat you need to do is this
VPN OS is ubuntu
sudo pm2 start --name YourApplicationName npm -- start
PS: if you push any updates in the future you should pull it and then restart or reload your pm2 like
sudo pm2 reload 0
where 0 is the index of your project in pm2 you can dopm2 list
to see what index your project have <3you need to have server.js file in root directory and run with plesk node