Skip to content

Commit

Permalink
update production deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Sep 8, 2024
1 parent 57832c6 commit a7402c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
set :stages, %w[appliance]
set :default_stage, 'appliance'
set :stage, 'appliance'
set :application, 'cron'
set :application, 'ontologies_api'

# SSH parameters
set :ssh_port, 22
Expand All @@ -19,7 +19,8 @@
set :ssh_options, { :forward_agent => true }

# Linked files and directories
append :linked_files, "config/config.rb"
append :linked_files, "config/environments/appliance.rb"

append :linked_dirs, 'logs', '.bundle'
set :keep_releases, 2

Expand Down
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 deployer@sshproxy.ontoportal.org -W %h:%p')
proxy: Net::SSH::Proxy::Command.new('ssh guest@134.176.27.193 -W %h:%p')
}

0 comments on commit a7402c1

Please sign in to comment.