This file contains hidden or 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
| source 'https://rubygems.org' | |
| gem 'knife-solo' | |
| gem 'berkshelf' |
This file contains hidden or 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
| source 'https://rubygems.org' | |
| gem 'knife-solo', '~> 0.6.0' | |
| gem 'knife-solo_data_bag', '~> 2.0.0' | |
| gem 'berkshelf', '~> 6.3.1' | |
| gem 'chef', '~> 12.18.31' |
This file contains hidden or 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
| source 'https://supermarket.chef.io' | |
| cookbook 'runit', '~> 3.0.5' | |
| cookbook 'users', '~> 4.0.3' | |
| cookbook 'sudo', '~> 3.3.1' | |
| cookbook 'openssh', '~> 2.1.1' | |
| cookbook 'ufw', '~> 3.1.0' | |
| cookbook 'nodejs', '~> 3.0.0' | |
| cookbook 'ncdu', '~> 1.0.0' | |
| cookbook 'swap_tuning', '~> 0.2.0' |
This file contains hidden or 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
| { | |
| "name": "base", | |
| "description": "Base role", | |
| "json_class": "Chef::Role", | |
| "default_attributes": { | |
| "authorization": { | |
| "sudo": { | |
| "groups": [ | |
| "sysadmin" | |
| ], |
This file contains hidden or 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
| package 'libgmp3-dev' do | |
| action :install | |
| end | |
| package 'jpegoptim' do | |
| action :install | |
| end | |
| package 'imagemagick' do | |
| action :install |
This file contains hidden or 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
| role :app, %w{deployer@ip} | |
| role :web, %w{deployer@ip} | |
| role :db, %w{deployer@ip} | |
| set :branch, fetch(:branch, 'master') | |
| set :deploy_to, '/home/deployer/www/translations' |
This file contains hidden or 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
| require 'capistrano/setup' | |
| require 'capistrano/deploy' | |
| require 'rvm1/capistrano3' | |
| require 'capistrano/bundler' | |
| require 'capistrano/rails/migrations' | |
| Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } |
This file contains hidden or 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
| return if Rails.env.test? || Rails.env.development? rescue nil | |
| app_path = '/home/deployer/www/translations' | |
| directory "#{app_path}/current" | |
| rackup "#{app_path}/current/config.ru" | |
| daemonize true |
This file contains hidden or 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
| upstream api { | |
| server unix:///home/deployer/www/translations/shared/tmp/sockets/puma.sock; | |
| } | |
| server { | |
| listen 80; | |
| server_name _; | |
| return $scheme://translations.betwixt.us$request_uri; | |
| } |
This file contains hidden or 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
| { | |
| "run_list": [ | |
| "role[base]", | |
| "recipe[chef-nginx::production]", | |
| "recipe[chef-monit::production]" | |
| ], | |
| "automatic": { | |
| "ipaddress": "82.196.6.97" | |
| } |