Commit e729eeabccb72b97c50e2654029897f5b2c8cd4a

Authored by Rodrigo Souto
1 parent 97b77def

[postgres-tests] Making quick-start prepare environment to postgresql by default

script/install-dependencies/debian-squeeze.sh
... ... @@ -4,7 +4,7 @@ run sudo apt-get -y install $runtime_dependencies
4 4 sudo apt-get -y install iceweasel || sudo apt-get -y install firefox
5 5  
6 6 # needed for development
7   -run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb libxml2-dev libxslt-dev
  7 +run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb libxml2-dev libxslt-dev postgresql
8 8 gem which bundler >/dev/null 2>&1 || gem_install bundler
9 9 setup_rubygems_path
10 10 run bundle install
... ...
script/quick-start
... ... @@ -67,7 +67,10 @@ else
67 67 fi
68 68  
69 69 # create the database with sample data
70   -run cp config/database.yml.sqlite3 config/database.yml
  70 +run cp config/database.yml.pgsql config/database.yml
  71 +sudo -u postgres createuser $USER --no-superuser --createdb --no-createrole
  72 +sed -ri "s/username: noosfero/username: $USER/"
  73 +sudo -u postgres createdb noosfero_development -O $USER
71 74 run rake db:schema:load
72 75 run rake db:data:minimal
73 76 run rake db:test:prepare
... ...