summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-29 09:15:40 -0600
committermo khan <mo@mokhan.ca>2013-07-29 09:15:40 -0600
commit8597e59b4011dac9c4ed896e2d9ce0d2c9d213fc (patch)
treeae1bf3f746a2df6d95907dd486a5ea9aa3d02666 /config
parentae24eb408eaad90d04142907fa40c8dcb8f3419f (diff)
use postgres 9.2
Diffstat (limited to 'config')
-rw-r--r--config/recipes/postgresql.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/recipes/postgresql.rb b/config/recipes/postgresql.rb
index 014b109..63fa23b 100644
--- a/config/recipes/postgresql.rb
+++ b/config/recipes/postgresql.rb
@@ -2,14 +2,14 @@ set_default(:postgresql_host, "localhost")
set_default(:postgresql_user) { application }
set_default(:postgresql_password) { Capistrano::CLI.password_prompt "PostgreSQL Password: " }
set_default(:postgresql_database) { "#{application}_#{rails_env}" }
-set_default(:postgresql_pid) { "/var/run/postgresql/9.1-main.pid" }
+set_default(:postgresql_pid) { "/var/run/postgresql/9.2-main.pid" }
namespace :postgresql do
desc "Install the latest stable release of PostgreSQL."
task :install, roles: :db, only: {primary: true} do
run "#{sudo} add-apt-repository -y ppa:pitti/postgresql"
run "#{sudo} apt-get -y update"
- run "#{sudo} apt-get -y install postgresql libpq-dev"
+ run "#{sudo} apt-get -y install postgresql-9.2 libpq-dev"
end
after "deploy:install", "postgresql:install"