diff options
| author | Michel Etienne | 2014-11-14 11:04:34 +0100 | 
|---|---|---|
| committer | Michel Etienne | 2014-11-14 11:04:34 +0100 | 
| commit | d795be5ec49e4ed04d03177469a1cc79b654cda6 (patch) | |
| tree | 1cc8bca7e2fe1a48e7341c38f858f582271b5739 /config/deploy.rb | |
| parent | ab46893445585fcd2ebee469c8c2065cecd5963d (diff) | |
| download | chouette-core-d795be5ec49e4ed04d03177469a1cc79b654cda6.tar.bz2 | |
add java deploy with capistrano
Diffstat (limited to 'config/deploy.rb')
| -rw-r--r-- | config/deploy.rb | 7 | 
1 files changed, 6 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" | 
