Commit 5fa4bd192eb1f7828eb2e98f4bd08eeb06c9b71a
1 parent
0ea98e34
Exists in
colab
and in
4 other branches
Deploy adjusted to new server
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
config/deploy.rb
... | ... | @@ -6,21 +6,23 @@ set :rails_env, "production" |
6 | 6 | |
7 | 7 | set :rvm_ruby_string, :local # use the same ruby as used locally for deployment |
8 | 8 | set :rvm_autolibs_flag, "read-only" # more info: rvm help autolibs |
9 | -set :rvm_type, :system | |
9 | +set :rvm_type, :user | |
10 | 10 | |
11 | 11 | set :application, "mezuro" |
12 | 12 | set :deploy_to, "/home/mezuro/app" |
13 | -set :repository, "https://github.com/mezuro/mezuro-standalone.git" | |
13 | +set :repository, "https://github.com/mezuro/mezuro.git" | |
14 | 14 | |
15 | 15 | set :user, 'mezuro' |
16 | 16 | set :use_sudo, false |
17 | +set :rvm_install_with_sudo, true | |
18 | +default_run_options[:pty] = true | |
17 | 19 | |
18 | 20 | # set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names |
19 | 21 | # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` |
20 | 22 | |
21 | -role :web, "ec2-184-72-147-209.compute-1.amazonaws.com" # Your HTTP server, Apache/etc | |
22 | -role :app, "ec2-184-72-147-209.compute-1.amazonaws.com" # This may be the same as your `Web` server | |
23 | -role :db, "ec2-184-72-147-209.compute-1.amazonaws.com", :primary => true # This is where Rails migrations will run | |
23 | +role :web, "mezuro.org" # Your HTTP server, Apache/etc | |
24 | +role :app, "mezuro.org" # This may be the same as your `Web` server | |
25 | +role :db, "mezuro.org", :primary => true # This is where Rails migrations will run | |
24 | 26 | |
25 | 27 | # before 'deploy:setup', 'rvm:install_rvm' # install RVM |
26 | 28 | before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset, OR: |
... | ... | @@ -30,13 +32,13 @@ after 'deploy:restart', "deploy:cleanup" |
30 | 32 | |
31 | 33 | namespace :deploy do |
32 | 34 | task :start do ; end |
33 | - | |
35 | + | |
34 | 36 | task :stop do ; end |
35 | - | |
37 | + | |
36 | 38 | task :restart, :roles => :app, :except => { :no_release => true } do |
37 | 39 | run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" |
38 | 40 | end |
39 | - | |
41 | + | |
40 | 42 | task :config_symlinks do |
41 | 43 | run "ln -s #{File.join(deploy_to, 'shared', 'config/database.yml')} #{File.join(release_path, 'config/database.yml')}" |
42 | 44 | end | ... | ... |