Skip to content

Shell script to deploy vuejs application with zero downtime.

Notifications You must be signed in to change notification settings

mrkeyiano/vuejs-deploy-zero-downtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

vuejs-deploy-zero-downtime

Shell script to deploy vuejs application with zero downtime.

make live-deploy.sh script executable using the command below:

chmod +x live-deploy.sh

create directory named public

after running git pull command, you can build your vuejs application with zero downtime by running the command below:

./live-deploy.sh

Automate application build after git pull:

you can trigger this script to build your vuejs application instantly after running git pull using git post-merge hook.

cd .git/hooks

edit post-merge file or create one if it doesnt exist.

post-merge:

#!/bin/sh

#vuejs build
echo initiating application deployment...
./live-deploy.sh

save and make file executable using the command below:

chmod +x post-merge.sh

NB: Make sure your vuejs application virtual host is pointed to the public folder and not the dist folder.

About

Shell script to deploy vuejs application with zero downtime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages