I'm facing a problem that is when i deployed my laravel 5.5/vuejs application i can't update the vue components. in the development mode i didn't encounter this problem because i run "npm run watch". but on real server (000webhost.com just for testing) how can i perform this command. what i'm doing right now is editing the components in my local server, run "npm run watch" and then uploading these two files (/public/css/app.css) and (/public/js/app.js) to the server. and it works but after cleaning browser cache which is another problem unfortunately.
"I'm using Vuejs which is built-in with laravel"
Is shared hosting appropriate to host apps that contain vue components or nodejs apps in general ? Or is this kind of applications require a hosting with powerful capabilities like forge and Digitalocean ?
If there is a ways or tips to fix these issues please help me.
npm run production
on your server? Running the watch command on your local machine will not do anything for the server. – parker_codesnpm install
. If there's no way to do that, you may need to remove your node packages from your .gitignore file so you can push that up. It's not recommended, but that may be your only way. – parker_codes