I’m trying to start a nuxt.js project on Plesk. Plesk need a Application Startup File, but nuxt.js have no index file.
How can I start the server? Do I have to create a server.js and in this file execute npm run start?
server.js
npm run start
3
I found the solution:
In the field Application Startup File you have to put node_modules/nuxt/bin/nuxt-start.
node_modules/nuxt/bin/nuxt-start
Need to install nuxt-start module
npm i –save nuxt-start
in Application Startup File
node_modules/nuxt-start/bin/nuxt-start.js
Click run script button and type start and close page if you want to restart again and show running process. Type this:
pgrep -f npm
And then kill that process:
kill -9 <PID>
Click here to cancel reply.
3
Answers
I found the solution:
In the field Application Startup File you have to put
node_modules/nuxt/bin/nuxt-start
.Need to install nuxt-start module
in Application Startup File
Click run script button
and
type start and close page if you want to restart again and show running process.
Type this:
And then kill that process: