Skip to content

Commit

Permalink
update deploy server
Browse files Browse the repository at this point in the history
  • Loading branch information
molawson committed Jan 21, 2013
1 parent 4becb9a commit 1fd24dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
default_run_options[:pty] = true
ssh_options[:forward_agent] = true

role :web, "198.74.62.226"
role :app, "198.74.62.226"
role :db, "198.74.62.226", :primary => true
role :web, "kirby.molawson.com"
role :app, "kirby.molawson.com"
role :db, "kirby.molawson.com", :primary => true


after "deploy", "deploy:cleanup" # keep only the last 5 releases
Expand All @@ -33,13 +33,13 @@
run "/etc/init.d/unicorn_#{application} #{command}"
end
end

task :create_config_files do
default_admin_login = <<-EOF
USERNAME: #{user}
PASSWORD: #{password}
EOF

admin_login = ERB.new(default_admin_login)

run "mkdir -p #{shared_path}/config"
Expand Down Expand Up @@ -83,7 +83,7 @@
monitor_mode: true
app_name: molawson-staging
EOF

newrelic = ERB.new(default_newrelic)
put newrelic.result, "#{shared_path}/config/newrelic.yml"
end
Expand All @@ -98,7 +98,7 @@
sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
end
after "deploy:setup", "deploy:setup_config"

desc "Make sure local git is in sync with remote."
task :check_revision, roles: :web do
unless `git rev-parse HEAD` == `git rev-parse origin/master`
Expand Down Expand Up @@ -144,7 +144,7 @@
username: #{user}
password: #{password}
EOF

db_config = ERB.new(default_template)

run "mkdir -p #{shared_path}/config"
Expand Down

0 comments on commit 1fd24dc

Please sign in to comment.