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
| { | |
| "id": "deployer", | |
| "password": "$1$rB4gn6E8$7V4WSAxc5TnBW210tarSX.", | |
| "ssh_keys": [ | |
| "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDu4L3Qmq+cs/HUEBNhIigZQBWl94XZldQHNJiTKLYF5bVFuzutwo9qR8anm0L0zMheC/Vjxl2vlmZgqWZmd4u+KeFKg0a4Tqv6AUEsNBXURdqBsA1B7yKfUspVHAEcZRw39i8F79e1yQD9mpqOzKNFokyCNcTjntrxajfouDnjucHucrjLLv3OtjpqTB2mcLYOlT9bS2Sph3GFxt4DWbxL9S1g3+hvU3rCKI7QfPwS2ip7uKCtZzSAesDc/KWe/nvWbo08q9eGOig+3MlprGByLxAC2NtDpnrxWCFamr2kJGVLZEtS/a6NOFMwjlpXbsvqnZAVaQrO9gHIf+xQTBvK8F9FTMvaF9LlFcxcYX2DcJjqwoPPild4vYtuPAEQCUFn/CY0ouFKT6Ta51peh38EWmq1CZaqRfyX6eOxLzhK+Vrq20OtaxC6RqflAnQIDN4eQJ/YvgIgC1b3wLezTV6lc0uCytl/JtwVbDKyAxXtwGZjmuUxxBnQWLH6CsUKJITdpBZxATUURdseGF7EUKxbptPi98DnGGxJUw7/6hgD7klZcXQHjH0Zxn4UA7mkqMtSAeiMuj05K3RqafIDcCJe/iaLd9jju+xlxUd5jGnf5O5+dFYDVNvLlQ9sulAgFaO8LiDhR35q9an+Zql1UxxUFhp/QojgtzxvQ5TNToVBew== [email protected]" | |
| ], | |
| "groups": ["www-data", "sudo", "rvm", "sysadmin"], | |
| "shell": "\/bin\/bash" | |
| } |
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 "capistrano/scm/git" | |
| install_plugin Capistrano::SCM::Git | |
| 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
| 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/project' |
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/project' | |
| directory "#{app_path}/current" | |
| rackup "#{app_path}/current/config.ru" | |
| daemonize true | |
| pidfile "#{app_path}/shared/tmp/pids/puma.pid" | |
| state_path "#{app_path}/shared/tmp/puma.state" | |
| workers 2 |
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
| lock '3.7.2' | |
| set :application, 'project' | |
| set :repo_url, '[email protected]:kirilshevch/rails-api-template.git' | |
| set :use_sudo, false | |
| set :deploy_via, :copy | |
| set :keep_releases, 2 | |
| set :log_level, :debug |
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
| SENDGRID_USERNAME='login' | |
| SENDGRID_PASSWORD='pass' | |
| DOMAIN='http://domain.com' | |
| MAILER_SENDER='[email protected]' | |
| PG_USERNAME='deployer' | |
| PG_PASSWORD='$1$ut5HY53S$yMVOzameTGPNrlg1w7dsv.' | |
| DEVISE_SECRET='secret_key' |
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
| machine: | |
| ruby: | |
| version: 2.3.4 | |
| deployment: | |
| staging: | |
| branch: staging | |
| commands: | |
| - bundle exec cap staging deploy | |
| production: | |
| branch: production |
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
| AllCops: | |
| Exclude: | |
| - 'spec/**/*' | |
| TargetRubyVersion: 2.4 | |
| Metrics/LineLength: | |
| Max: 120 | |
| FrozenStringLiteralComment: | |
| Enabled: false |
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
| speedups: | |
| each_with_index_vs_while: false | |
| exclude_paths: | |
| - spec/**/*.rb |
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
| CommitMsg: | |
| CapitalizedSubject: | |
| enabled: false | |
| EmptyMessage: | |
| enabled: false | |
| TrailingPeriod: | |
| enabled: true |