Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1614859
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 21, 9:11 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Mar 23, 9:11 AM (18 h, 12 m)
Engine
blob
Format
Raw Data
Handle
351680
Attached To
rARCHIVING archiving
View Options
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
Event Timeline
Log In to Comment