简体   繁体   中英

How to start nuxt.js on plesk?

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 ?

Need to install nuxt-start module

npm i --save nuxt-start

in Application Startup File

node_modules/nuxt-start/bin/nuxt-start.js

I found the solution:

In the field Application Startup File you have to put node_modules/nuxt/bin/nuxt-start .

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM