From e0a7b20121178b6400aa6810d1d8492c49b1e1d3 Mon Sep 17 00:00:00 2001 From: Ismail Akbudak Date: Mon, 24 Aug 2015 11:52:26 +0300 Subject: [PATCH] add ssh port for capistrano --- lib/cybele/app_builder.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cybele/app_builder.rb b/lib/cybele/app_builder.rb index c751f22..1f0e0d0 100644 --- a/lib/cybele/app_builder.rb +++ b/lib/cybele/app_builder.rb @@ -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"'