Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy nuxt.js project on shared hosting?

Tags:

vue.js

nuxt.js

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?

like image 779
Imrul Hasan Avatar asked Apr 25 '18 11:04

Imrul Hasan


1 Answers

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.
like image 101
MadDocNC Avatar answered Oct 16 '22 22:10

MadDocNC