Skip to content

Commit

Permalink
add ssh port for capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Akbudak committed Aug 24, 2015
1 parent 171e45f commit e0a7b20
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,13 @@ def setup_capistrano_settings
end

append_to_file 'config/deploy/production.rb' do
'server "example.com", user: "#{fetch(:local_user)}", roles: %w{app db web}, primary: true
#set :port, 2222
'server "example.com", user: "#{fetch(:local_user)}", roles: %w{app db web}, primary: true, port: 22
set :rails_env, "production"
set :branch, "master"
set :project_domain, "example.com"'
end
append_to_file 'config/deploy/staging.rb' do
'server "staging.example.com", user: "#{fetch(:local_user)}", roles: %w{app db web}, primary: true
#set :port, 2222
'server "staging.example.com", user: "#{fetch(:local_user)}", roles: %w{app db web}, primary: true, port: 22
set :rails_env, "staging"
set :branch, "develop"
set :project_domain, "staging.example.com"'
Expand Down

0 comments on commit e0a7b20

Please sign in to comment.