This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tech2018:dev_deploys [2018/05/30 16:45] Gianluca Pelliccioli created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Deploys in test and production env ====== | ||
- | When you are confident that your solution in ready to go in test or production you should proceed with the deploy. | ||
- | |||
- | This is a script we suggest to use for an automated deploy. | ||
- | Please notice: this script does not handle SQL changes that you will have to do manually. | ||
- | |||
- | |||
- | Script to deploy from BitBucket on a target folder called repo.wmanager.org | ||
- | |||
- | |||
- | < | ||
- | #!/bin/sh | ||
- | |||
- | d=$(date +" | ||
- | |||
- | #deploy in a temp folder | ||
- | /bin/mkdir / | ||
- | |||
- | |||
- | VAR=$(expect -c ' | ||
- | spawn git clone -b develop --single-branch https:// | ||
- | expect " | ||
- | send " | ||
- | expect " | ||
- | send " | ||
- | expect eof | ||
- | ') | ||
- | |||
- | |||
- | #backup current folder and activate the new one | ||
- | /bin/mv / | ||
- | /bin/mv / | ||
- | |||
- | #overwrite configurations from server side script | ||
- | /bin/cp ./ | ||
- | /bin/cp ./ | ||
- | /bin/cp ./ | ||
- | |||
- | /bin/ln -s / | ||
- | ~ | ||
- | ~ | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | [[tech2018: |