diff --git a/config/deploy.rb b/config/deploy.rb index 41cbce7..b31db9a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,23 +1,22 @@ # config valid only for Capistrano 3.1 lock '3.2.1' set :application, 'archiving' -set :repo_url, 'git@bitbucket.org:xlembouras/baas.git' set :deploy_to, '/srv/archiving' set :linked_files, %w(config/database.yml config/database_bacula.yml config/secrets.yml config/bconsole.conf config/ssh.yml config/bacukey config/bacula.yml config/mailer.yml) set :linked_dirs, %w(log tmp/pids tmp/cache tmp/sockets) set :keep_releases, 5 namespace :deploy do desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do execute 'sudo unicornctl respawn' end end after :publishing, :restart end diff --git a/config/deploy/production.rb b/config/deploy/production.rb new file mode 100644 index 0000000..4f44e4e --- /dev/null +++ b/config/deploy/production.rb @@ -0,0 +1,7 @@ +set :rails_env, :production + +set :repo_url, 'https://repo.grnet.gr/diffusion/ARCHIVING/archiving.git' + +server '83.212.1.103', user: 'archiving', roles: %w(web app db) + +set :ssh_options, forward_agent: false diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index a05fe8c..501d9c2 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -1,5 +1,7 @@ set :rails_env, :production +set :repo_url, 'git@bitbucket.org:xlembouras/baas.git' + server 'baas-edet4.grnet.gr', user: 'archiving', roles: %w(web app db) set :ssh_options, forward_agent: false