Add scripts for starting server in development mode.
This commit is contained in:
12
start-dev.sh
Executable file
12
start-dev.sh
Executable 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
4
stop-db.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#:/bin/bash
|
||||
|
||||
service mongod stop
|
||||
systemctl stop mongod
|
||||
Reference in New Issue
Block a user