问题
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
?
回答1:
I found the solution:
In the field Application Startup File you have to put node_modules/nuxt/bin/nuxt-start
.
回答2:
Need to install nuxt-start module
npm i --save nuxt-start
in Application Startup File
node_modules/nuxt-start/bin/nuxt-start.js
来源:https://stackoverflow.com/questions/52218222/how-to-start-nuxt-js-on-plesk