Skip to content

Commit

Permalink
Merge pull request #516 from davidalber/hackathon-website
Browse files Browse the repository at this point in the history
Removing the old container and volume during deployment
  • Loading branch information
gigabo authored Aug 10, 2016
2 parents 0e19646 + c8ad93b commit cc44f9c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/react-server-website/deployment/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@
- name: Copy NGINX configuration
copy: src=../nginx.conf dest=/home/ubuntu/nginx.conf mode=0644

- name: Pull containers
shell: docker-compose pull && docker-compose build
- name: Pull images
command: docker-compose pull
become: true

- name: Stop services
command: docker-compose stop
become: true

- name: Remove docs container and volume
command: docker-compose rm -vf docs
become: true

- name: Restart services
shell: docker-compose stop && SLACK_API_TOKEN=`cat slack-api-token | tr -d '\n'` docker-compose up -d
shell: SLACK_API_TOKEN=`cat slack-api-token | tr -d '\n'` docker-compose up -d
become: true

0 comments on commit cc44f9c

Please sign in to comment.