.cloud66/deploy_hooks.yml
production:
# Install postgres (to enable db:structure:load) and ripgrep
first_thing:
- command: sudo apt-get -y install postgresql-client-common ripgrep
target: rails
sudo: true
apply_during: build_only
after_symlink:
# Make skylight pid & daemon files writable
- command: touch /tmp/skylight.pid && sudo chown nginx:app_writers /tmp/skylight* && chmod -R 775 /tmp/skylight*
target: rails
run_on: all_servers
sudo: true
# Make the uploads cache folder writable
- command: sudo chown nginx:app_writers $RAILS_STACK_PATH/tmp/cache && chmod -R 775 $RAILS_STACK_PATH/tmp/cache
target: rails
run_on: all_servers
sudo: true
after_rails:
# Make papertrail connected
- source: /.cloud66/log_files.yml
destination: /etc/log_files.yml
sudo: true
target: rails
apply_during: build_only
- source: /.cloud66/papertrail.sh
destination: /tmp/papertrail.sh
target: rails
sudo: true
execute: true
apply_during: build_only