Created
June 29, 2016 13:58
-
-
Save bryanmtl/16dd88ba7bb247e073bcb9898f90574d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
staging: | |
first_thing: | |
- command: apt-get install awscli -y | |
target: any | |
execute: true | |
sudo: true | |
- source: /.cloud66/node | |
destination: /tmp/install.sh | |
target: rails | |
execute: true | |
sudo: true | |
after_bundle: | |
- command: cd $RAILS_BASE_PATH/releases/$(ls -t $RAILS_BASE_PATH/releases | head -1) && npm install > npm_install.log 2>&1 | |
target: rails | |
sudo: true | |
- command: cd $RAILS_BASE_PATH/releases/$(ls -t $RAILS_BASE_PATH/releases | head -1) && gulp build > gulp_deploy.log 2>&1 | |
target: rails | |
sudo: true | |
- command: chown ubuntu:ubuntu -R $RAILS_BASE_PATH/releases/$(ls -t $RAILS_BASE_PATH/releases | head -1) | |
target: rails | |
sudo: true | |
after_rails: | |
- source: /.cloud66/files/open_folder_permissions.sh | |
destination: /tmp/open_folder_permissions.sh | |
target: rails | |
execute: true | |
run_on: all_servers | |
apply_during: all | |
sudo: true | |
target: rails | |
execute: true | |
production: | |
first_thing: | |
- command: apt-get install awscli -y | |
target: any | |
execute: true | |
sudo: true | |
- source: /.cloud66/node | |
destination: /tmp/install.sh | |
target: rails | |
execute: true | |
sudo: true | |
run_on: all_servers | |
after_bundle: | |
- command: cd $RAILS_BASE_PATH/releases/$(ls -t $RAILS_BASE_PATH/releases | head -1) && npm install > npm_install.log 2>&1 | |
target: rails | |
sudo: true | |
run_on: all_servers | |
- command: cd $RAILS_BASE_PATH/releases/$(ls -t $RAILS_BASE_PATH/releases | head -1) && gulp build > gulp_deploy.log 2>&1 | |
target: rails | |
sudo: false | |
run_on: all_servers | |
- command: chown ubuntu:ubuntu -R $RAILS_BASE_PATH/releases/$(ls -t $RAILS_BASE_PATH/releases | head -1) | |
target: rails | |
sudo: true | |
run_on: all_servers | |
after_rails: | |
- source: /.cloud66/files/open_folder_permissions.sh | |
destination: /tmp/open_folder_permissions.sh | |
target: rails | |
execute: true | |
run_on: all_servers | |
apply_during: all | |
sudo: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment