aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/deploy.rb7
-rw-r--r--config/deploy/production.rb1
-rw-r--r--config/deploy/sismo.rb1
-rw-r--r--config/deploy/staging.rb1
-rw-r--r--config/deploy/unstable.rb1
5 files changed, 10 insertions, 1 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 4d7e28009..68b087c17 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -5,6 +5,7 @@ set :stages, %w(sandbox unstable staging production sismo)
set :application, "chouette2"
set :scm, :git
set :repository, "https://github.com/afimb/chouette2.git"
+set :maven_repo, "http://maven.chouette.cityway.fr"
set :deploy_to, "/var/www/chouette2"
set :use_sudo, false
default_run_options[:pty] = true
@@ -12,7 +13,7 @@ set :group_writable, true
set :rake, "bundle exec rake"
set :keep_releases, 4
set :rails_env, "production" #added for delayed job
-set :user, "ldonnet"
+set :user, "metienne"
set :deploy_via, :copy
set :copy_via, :scp
set :copy_exclude, ".git/*"
@@ -67,6 +68,10 @@ namespace :deploy do
run "mkdir -p /var/lib/chouette/exports"
run "mkdir -p /var/lib/chouette/validations"
run "mkdir -p /usr/local/opt/chouette-command/"
+ run "cd /usr/local/opt/chouette-command && wget #{maven_repo}/fr/certu/chouette/chouette-gui-command/#{gui_cmd}/chouette-gui-command-#{gui_cmd}.zip"
+ run "cd /usr/local/opt/chouette-command && rm -rf chouette-cmd-#{gui_cmd}"
+ run "cd /usr/local/opt/chouette-command && unzip chouette-gui-command-#{gui_cmd}.zip"
+ run "cd /usr/local/opt/chouette-command/chouette-cmd-#{gui_cmd} && chmod a+w ."
end
desc "Make group writable all deployed files"
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
index 872dfbf1a..ab1408c1c 100644
--- a/config/deploy/production.rb
+++ b/config/deploy/production.rb
@@ -1,2 +1,3 @@
server "chouette.cityway.fr", :app, :web, :db, :primary => true
set :branch, "V2_4"
+set :gui_cmd, "2.4.1" \ No newline at end of file
diff --git a/config/deploy/sismo.rb b/config/deploy/sismo.rb
index a8cb59006..3da595688 100644
--- a/config/deploy/sismo.rb
+++ b/config/deploy/sismo.rb
@@ -1,2 +1,3 @@
server "chouette-sismo.marseille.cityway.fr", :app, :web, :db, :primary => true
set :branch, "V2_5"
+set :gui_cmd, "2.5.0"
diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb
index 3a288164b..d2b24df3d 100644
--- a/config/deploy/staging.rb
+++ b/config/deploy/staging.rb
@@ -4,3 +4,4 @@ set :copy_cache, true
set :copy_via, :scp
set :copy_exclude, ".git/*"
set :branch, "V2_4"
+set :gui_cmd, "2.4.1" \ No newline at end of file
diff --git a/config/deploy/unstable.rb b/config/deploy/unstable.rb
index d8d5d30bc..696303466 100644
--- a/config/deploy/unstable.rb
+++ b/config/deploy/unstable.rb
@@ -1,2 +1,3 @@
server "chouette-p.aix.cityway.fr", :app, :web, :db, :primary => true
set :branch, "V2_5"
+set :gui_cmd, "2.5.0" \ No newline at end of file