- Zero Downtime
- Graceful shutdowns
- Via Github Actions
- Zero infrastructure management overhead
The general idea is to have Github Actions test, build and deploy a Rails app to Google Cloud Compute Engine.
| namespace :deploy do | |
| task :confirmation do | |
| puts <<-WARN | |
| ======================================================================== | |
| WARNING: You're about to perform actions on production server(s) | |
| Please confirm that all your intentions are kind and friendly | |
| ======================================================================== |
| # | |
| # Cookbook Name:: delayed_job | |
| # Recipe:: default | |
| # | |
| node[:applications].each do |app_name, data| | |
| user = node[:users].first | |
| case node[:instance_role] | |
| when "solo", "app", "app_master" |