File tree Expand file tree Collapse file tree 4 files changed +32
-22
lines changed
Expand file tree Collapse file tree 4 files changed +32
-22
lines changed Original file line number Diff line number Diff line change @@ -48,4 +48,10 @@ after_success:
4848 - openssl aes-256-cbc -K $encrypted_c17fa81e6490_key -iv $encrypted_c17fa81e6490_iv -in travis/ssh-private-key.enc -out travis/ssh-private-key -d
4949 - chmod 600 travis/ssh-private-key
5050 - ssh-add travis/ssh-private-key
51- - ansible-playbook -i ansible/inventory.yml ansible/playbook.yml # Deploy to dev server
51+ - chmod +x deploy.sh
52+
53+ deploy :
54+ provider : script
55+ script : bash deploy.sh
56+ on :
57+ branch : dev
Original file line number Diff line number Diff line change 99 dest : /home/mapswipe/python-mapswipe-workers
1010 version : dev
1111 - name : Rebuild and restart Docker container usind Docker-Compose.
12- script : /home/mapswipe/python-mapswipe-worker/deploy .sh
12+ script : /home/mapswipe/python-mapswipe-worker/recreate_container .sh
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # This script builds and starts all Docker container for running the Mapswipe ecosystem.
3- # It is run either manually or by an Ansible Playbook after a successful Travis build.
4-
5- # docker-compose build --no-cache postgres firebase_deploy mapswipe_workers manager_dashboard nginx api
6- docker-compose build --no-cache postgres mapswipe_workers manager_dashboard nginx api
7- if [[ $? = 0 ]]; then
8- echo " success"
9- else
10- echo " failure: $? "
11- exit
12- fi
13-
14- # docker-compose up -d --force-recreate postgres firebase_deploy mapswipe_workers manager_dashboard nginx api
15- docker-compose up -d --force-recreate postgres mapswipe_workers manager_dashboard nginx api
16- if [[ $? = 0 ]]; then
17- echo " success"
18- else
19- echo " failure: $? "
20- exit
21- fi
2+ # Deploy to dev server.
3+ # This script is called by Travis.
4+ ansible-playbook -i ansible/inventory.yml ansible/playbook.yml
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # This script builds and starts all Docker container for running the Mapswipe ecosystem.
3+ # It is run either manually or by an Ansible Playbook after a successful Travis build.
4+
5+ # docker-compose build --no-cache postgres firebase_deploy mapswipe_workers manager_dashboard nginx api
6+ docker-compose build --no-cache postgres mapswipe_workers manager_dashboard nginx api
7+ if [[ $? = 0 ]]; then
8+ echo " success"
9+ else
10+ echo " failure: $? "
11+ exit
12+ fi
13+
14+ # docker-compose up -d --force-recreate postgres firebase_deploy mapswipe_workers manager_dashboard nginx api
15+ docker-compose up -d --force-recreate postgres mapswipe_workers manager_dashboard nginx api
16+ if [[ $? = 0 ]]; then
17+ echo " success"
18+ else
19+ echo " failure: $? "
20+ exit
21+ fi
You can’t perform that action at this time.
0 commit comments