Deploy script
npm install @brandandcelebrities/bcdeployshell
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
`js
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
`shell
npm run deploy
`Options
`shell
-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
``