Testing deployment for apache script

This commit is contained in:
Ethan N. Paul 2017-12-21 17:25:36 -05:00
parent 86ec75fee5
commit 95efcfdc85
1 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,24 @@
sync_website:
stages:
- deploy-apache
- deploy-iis
IIS Deployment:
stage: deploy-iis
script:
- powershell .\deploy.ps1
tags:
- web
- iis
Apache Deployment:
stage: deploy-apache
script:
- mkdir /var/www/enpaul.new
- rm ./deploy.ps1
- rm ./web.config
- rm -r ./_archive
- cp ./* /var/www/enpaul.new/
- mv -r /var/www/enpaul /var/www/enpaul.old
- mv -r /var/www/enpaul.new /var/www/enpaul
- rm -r /var/www/enpaul.old
tags:
- apache