After installing vue cli globally by running npm install -g vue-cli
, I have installed all the modules in the project folder "myBlog" by running npm install
and can run the project in my local environment by using npm run dev
. But when I am going to move this project in the live server is this is the right way to run the batch program (npm run dev
) continuously or there are other ways to run the project without running npm run dev
continuously?
It's not Vue specific but you also should be able to run npm run build
which generates production bundles in /dist
subfolder of your project. You are supposed to copy this folder to the production server and configure the server so that it serves dist/index.html
for every URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With