Use the same dev database credentials as the main impress app
This should make it easier to test both apps working together!
This commit is contained in:
parent
ae287a0393
commit
106fcf075f
4 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ dependencies to install correctly. See the instructions for
|
|||
### Create your development database
|
||||
|
||||
Next, create two MySQL databases: `openneo_impress` and `openneo_id`. Then,
|
||||
create a MySQL user named `impress_2020_dev` with password `impress_2020_dev`,
|
||||
create a MySQL user named `impress_dev` with password `impress_dev`,
|
||||
with full permissions for both databases.
|
||||
|
||||
(We're assuming that, on your local machine, your MySQL server isn't connected
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
"deploy": "ansible-playbook -i deploy/inventory.cfg deploy/playbooks/deploy.yml",
|
||||
"deploy-skip-build": "ansible-playbook -i deploy/inventory.cfg deploy/playbooks/deploy.yml --extra-vars='{\"skip_build\": true}'",
|
||||
"mysql": "mysql --host=$(dotenv -p IMPRESS_MYSQL_HOST) --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD) --database=openneo_impress",
|
||||
"mysql-dev": "mysql --host=localhost --user=impress_2020_dev --password=impress_2020_dev --database=openneo_impress",
|
||||
"mysql-dev": "mysql --host=localhost --user=impress_dev --password=impress_dev --database=openneo_impress",
|
||||
"mysql-admin": "mysql --host=$(dotenv -p IMPRESS_MYSQL_HOST) --user=matchu --password --database=openneo_impress",
|
||||
"mysqldump": "mysqldump --host=$(dotenv -p IMPRESS_MYSQL_HOST) --user=$(dotenv -p IMPRESS_MYSQL_USER) --password=$(dotenv -p IMPRESS_MYSQL_PASSWORD)",
|
||||
"setup-mysql": "yarn mysql-admin < scripts/setup-mysql.sql",
|
||||
|
|
Binary file not shown.
|
@ -13,8 +13,8 @@ const defaultOptions =
|
|||
process.env["DB_ENV"] === "development"
|
||||
? {
|
||||
host: "localhost",
|
||||
user: "impress_2020_dev",
|
||||
password: "impress_2020_dev",
|
||||
user: "impress_dev",
|
||||
password: "impress_dev",
|
||||
database: "openneo_impress",
|
||||
}
|
||||
: {
|
||||
|
|
Loading…
Reference in a new issue