Rename database names and user name

This commit is contained in:
Rohan Mitchell
2013-10-18 18:21:04 +11:00
parent 761bafe375
commit f7c431be3c
4 changed files with 13 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ services: postgresql
before_install:
before_script:
- cp config/database.travis.yml config/database.yml
- psql -c 'create database open_food_web_test;' -U postgres
- psql -c 'create database open_food_network_test;' -U postgres
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake spec

View File

@@ -1,4 +1,4 @@
test:
adapter: postgresql
database: open_food_web_test
database: open_food_network_test
username: postgres

View File

@@ -1,34 +1,34 @@
development:
adapter: postgresql
encoding: unicode
database: open_food_web_dev
database: open_food_network_dev
pool: 5
host: localhost
username: ofw
username: ofn
password: f00d
test:
adapter: postgresql
encoding: unicode
database: open_food_web_test
database: open_food_network_test
pool: 5
host: localhost
username: ofw
username: ofn
password: f00d
#not used with heroku
production:
adapter: postgresql
encoding: unicode
database: open_food_web_prod
database: open_food_network_prod
pool: 5
username: ofw
username: ofn
password: f00d
staging:
adapter: postgresql
encoding: unicode
database: open_food_web_prod
database: open_food_network_prod
pool: 5
username: ofw
username: ofn
password: f00d

View File

@@ -2,6 +2,6 @@
set -e
echo "drop database open_food_web_dev" | psql -h localhost -U ofw open_food_web_test
echo "create database open_food_web_dev" | psql -h localhost -U ofw open_food_web_test
ssh ofw-prod "pg_dump -h localhost -U openfoodweb openfoodweb_production |gzip" |gunzip |psql -h localhost -U ofw open_food_web_dev
echo "drop database open_food_network_dev" | psql -h localhost -U ofn open_food_network_test
echo "create database open_food_network_dev" | psql -h localhost -U ofn open_food_network_test
ssh ofn-prod "pg_dump -h localhost -U openfoodweb openfoodweb_production |gzip" |gunzip |psql -h localhost -U ofn open_food_network_dev