Skip to content

Instantly share code, notes, and snippets.

@a-m-dev
Created February 2, 2019 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-m-dev/072ee945fea4ff32302f573974d28114 to your computer and use it in GitHub Desktop.
Save a-m-dev/072ee945fea4ff32302f573974d28114 to your computer and use it in GitHub Desktop.
stages:
- develop
job_develop:
stage: develop
only:
- develop
tags:
- develop
script:
- rm ./package-lock.json
- npm cache clear --force
- npm install
- npm run serverBuild
- rm -r /home/uneed/webApp-main
- mkdir /home/uneed/webApp-main
- cp -r ./. /home/uneed/webApp-main
- cd /home/uneed/webApp-main
- pm2 restart npm -- run serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment