Skip to content

Commit

Permalink
Also switch deploy envs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNaessens committed Jul 30, 2015
1 parent fce4fb7 commit c688804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
3 changes: 1 addition & 2 deletions config/deploy/king.rb → config/deploy/oud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
}

set :rails_env, 'production'
set :rbenv_type, :system
set :rbenv_ruby, File.read('.ruby-version').strip
set :unicorn_pid, '/var/run/unicorn/gandalf.pid'
25 changes: 2 additions & 23 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,5 @@
}

set :rails_env, 'production'
set :unicorn_pid, '/var/run/unicorn/gandalf.pid'

# you can set custom ssh options
# it's possible to pass any option but you need to keep in mind that net/ssh understand limited list of options
# you can see them in [net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start)
# set it globally
# set :ssh_options, {
# keys: %w(/home/rlisowski/.ssh/id_rsa),
# forward_agent: false,
# auth_methods: %w(password)
# }
# and/or per server
# server 'example.com',
# user: 'user_name',
# roles: %w{web app},
# ssh_options: {
# user: 'user_name', # overrides user setting above
# keys: %w(/home/user_name/.ssh/id_rsa),
# forward_agent: false,
# auth_methods: %w(publickey password)
# # password: 'please use keys'
# }
# setting per server overrides global ssh_options
set :rbenv_type, :system
set :rbenv_ruby, File.read('.ruby-version').strip

0 comments on commit c688804

Please sign in to comment.