Skip to content

Commit

Permalink
add ssh proxy for production deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Sep 8, 2024
1 parent 71bf5fc commit 6fad369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
set :branch, 'master'
set :server, 'biodivportal.gfbio.org'
set :server, '192.168.0.22'

server fetch(:server), user: fetch(:user), roles: %w{web app}

set :ssh_options, {
user: 'ontoportal',
forward_agent: 'true',
#keys: %w(config/deploy_id_rsa),
#auth_methods: %w(publickey),
auth_methods: %w(publickey),
# use ssh proxy if UI servers are on a private network
#proxy: Net::SSH::Proxy::Command.new('ssh [email protected] -W %h:%p')
proxy: Net::SSH::Proxy::Command.new('ssh [email protected] -W %h:%p')
}

0 comments on commit 6fad369

Please sign in to comment.