appson
appson

Reputation: 183

Deployment of Laravel app with Vue component on shared hosting - vue components are not displaying

I'm testing process of deploying app with vue components on shared server. I have access to ssh. Npm is also installed. I check it with "node -v" command. The problem is that vue compoennts are not displaying. I tried to write "npm run production" but I receive an error 126. What should I do to display vue components? I know the voices that shared hosting is not the best choice but I'm just testing. I know that it's possible to turn on vue components on this hosting. I did it long time ago but I forgot how. My process of deployment had 3 steps: 1. Copy files (wihout public_html) from local disc to shared server w 2. Copy public_html do public_html on shared server 3. Changing paths in index.php inside public_html

App is almost working. The problem is with vue components. Please help.

Upvotes: 1

Views: 1553

Answers (1)

nmfzone
nmfzone

Reputation: 2903

You don't need NodeJs in production. You just need to build it (CSS & JS) on your machine, then upload it. Run npm run production in your local machine, then the public/css/app.css and public/js/app.js will be available (depends on your configuration). Then, just upload these files, done.

Upvotes: 2

Related Questions