aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Harley2018-02-08 17:07:31 +0000
committerTom Harley2018-02-08 17:07:31 +0000
commit2163349b8e5c5a5eca21c5865563552365e42209 (patch)
tree733b11d8a935c11719629adb320db31135f5f178
parentshould be almost functional now (diff)
downloadmedicine-2163349b8e5c5a5eca21c5865563552365e42209.tar.gz
medicine-2163349b8e5c5a5eca21c5865563552365e42209.zip

removed postgres password

-rwxr-xr-xgetmepostgres.sh2
-rw-r--r--src/db/orm.ts3
2 files changed, 2 insertions, 3 deletions
diff --git a/getmepostgres.sh b/getmepostgres.sh
index cb0388a..035b300 100755
--- a/getmepostgres.sh
+++ b/getmepostgres.sh
@@ -50,7 +50,7 @@ echo "> Starting the postgres server";
echo "> Create the Database";
"$PGDIR/postgres/bin/createdb" be4;
echo "> Creating Admin user";
-"$PGDIR/postgres/bin/psql" -U ${USER} postgres -c "CREATE USER admin WITH PASSWORD 'eprprJacR0hBpmWvs5IDJZTnjRAY2gM3tSm0b1af';";
+"$PGDIR/postgres/bin/psql" -U ${USER} postgres -c "CREATE USER admin;";
echo "> Granting Admin Permissions";
"$PGDIR/postgres/bin/psql" -U ${USER} postgres -c "ALTER DATABASE be4 OWNER TO admin;";
diff --git a/src/db/orm.ts b/src/db/orm.ts
index 300c90f..7bfa5b4 100644
--- a/src/db/orm.ts
+++ b/src/db/orm.ts
@@ -4,8 +4,7 @@ const seq = new Sequelize({
database: 'be4',
dialect: 'postgres',
username: 'admin',
- password: 'eprprJacR0hBpmWvs5IDJZTnjRAY2gM3tSm0b1af',
- storage: ':memory:',
+ password: '',
operatorsAliases: false,
modelPaths: [__dirname + 'model']
});