@brandandcelebrities/bcdeploy
v4.1.9
Published
Deploy script
Downloads
26
Readme
bcdeploy
Installation
npm install -D @brandandcelebrities/bcdeploy
Informations
Script used to deploy current app to staging or production environment.
Add the following lines in your package.json
scripts: {
"deploy-staging": "APP_NAME={APPNAME} JENKINS_JOB=FrontApp-Staging NODE_ENV=staging node ./node_modules/@brandandcelebrities/bcdeploy/index.js",
"deploy-lab": "APP_NAME={APPNAME} JENKINS_JOB=FrontApp-Lab NODE_ENV=lab node ./node_modules/@brandandcelebrities/bcdeploy/index.js",
"deploy-prod": "APP_NAME={APPNAME} JENKINS_JOB=FrontApp-Production NODE_ENV=staging node ./node_modules/@brandandcelebrities/bcdeploy/index.js"
}
Where {APPNAME}
is your application name (basically, the folder name)
You'll then be able to deploy with commands
npm run deploy
Options
`-a` or `--api` set Front version (for comparison with backend
`-b` or `--branch` deploy branch specified. If ommited, will deploy current branch
`-e` or `--env` specify environment. Can be `prod` or `staging` or `lab`. If ommited, default is `staging`
`--all` will deploy all apps instead of only current one