mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Rename database names and user name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
test:
|
||||
adapter: postgresql
|
||||
database: open_food_web_test
|
||||
database: open_food_network_test
|
||||
username: postgres
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user