Permalink
Browse files

update deploy server

  • Loading branch information...
1 parent 4becb9a commit 1fd24dc8a4d2395664305ad683b144a9636197da @molawson committed Jan 21, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 config/deploy.rb
View
@@ -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
@@ -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"
@@ -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
@@ -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`
@@ -144,7 +144,7 @@
username: #{user}
password: #{password}
EOF
-
+
db_config = ERB.new(default_template)
run "mkdir -p #{shared_path}/config"

0 comments on commit 1fd24dc

Please sign in to comment.