How to start nuxt.js on plesk?

China☆狼群 提交于 2019-12-08 14:01:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!