Add scripts for starting server in development mode.

esisar-restrictions
Simon Vareille 2020-02-07 20:06:24 +01:00
parent 6f21406afd
commit 61841d565e
No known key found for this signature in database
GPG Key ID: 008AE8E706CC19F9
2 changed files with 16 additions and 0 deletions

12
start-dev.sh Executable file
View File

@ -0,0 +1,12 @@
#:/bin/bash
systemctl start mongod
systemctl status mongod
mongo
use keyserver-test
db.createUser({ user:"keyserver-user", pwd:"trfepCpjhVrqgpXFWsEF", roles:[{ role:"readWrite", db:"keyserver-test" }] })
export NODE_ENV=development
npm start

4
stop-db.sh Executable file
View File

@ -0,0 +1,4 @@
#:/bin/bash
service mongod stop
systemctl stop mongod