How to deploy nuxt.js project on shared hosting?

烈酒焚心 提交于 2019-12-22 06:42:07

问题


Is it possible to deploy nuxt-js spa project in shared hosting like hostgator through cpanel?

I have tried several time to run below command, it's generate dist folder but didn't work.

My command: npm run build

Can you help me please?


回答1:


npm run build
Builds files for `npm run start` serving. And looks like you want it to be static files, which you just upload to hosting. So you should run:
npm run generate
then in `/dist/` you will find static spa.

来源:https://stackoverflow.com/questions/50021173/how-to-deploy-nuxt-js-project-on-shared-hosting

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