Last active
May 23, 2018 08:10
-
-
Save nikukyugamer/8277ae4b83bf60b70b05dc59394459c0 to your computer and use it in GitHub Desktop.
my config/deploy.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
| lock '3.10.2' | |
| set :application, 'APP_NAME' | |
| set :repo_url, 'REPO_URI' | |
| set :linked_dirs, %w(log tmp/pids tmp/cache tmp/sockets bundle) # public は微妙なので場合に応じて | |
| set :rbenv_type, :user # :system(/usr/local/rbenv) or :user(~/.rbenv) | |
| set :rbenv_ruby, '2.5.1' | |
| set :linked_files, ['config/master.key'] | |
| after 'deploy:publishing', 'deploy:restart' | |
| namespace :deploy do | |
| desc 'Restart application' | |
| task :restart do | |
| invoke 'unicorn:restart' | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment