updating .json file in production

时间:2019-01-09 22:05:48

标签: php laravel npm vuejs2

i am working on a project that have a scenario that multiple cascade relate models been updated by one user and then the updates were save to a json file. The other users should be able to access this dynamic json file from a vue template from the front end.

the problem I found is the front end users won't get the most updated cascade json until I recompile the asset. Should I have "npm run watch" on all the time in the production server or there should have a better way ? Thanks!

0 个答案:

没有答案