2015-09-10 22:45:48 +03:00
|
|
|
#!/usr/bin/env bash
|
2016-07-07 04:38:07 +03:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2015-09-10 22:45:48 +03:00
|
|
|
node ./scripts/gen_keys.js
|
2016-10-10 04:40:45 +03:00
|
|
|
node ./scripts/gen_vapid_keys.js
|
2015-09-10 22:45:48 +03:00
|
|
|
node ./test/mail_helper.js &
|
|
|
|
MH=$!
|
|
|
|
ls ./node_modules/fxa-auth-db-mysql/node_modules/mysql-patcher || npm i ./node_modules/fxa-auth-db-mysql
|
|
|
|
node ./node_modules/fxa-auth-db-mysql/bin/db_patcher.js
|
|
|
|
node ./node_modules/fxa-auth-db-mysql/bin/server.js &
|
|
|
|
DB=$!
|
|
|
|
|
2017-04-21 00:25:47 +03:00
|
|
|
node ./bin/key_server.js
|
2015-09-10 22:45:48 +03:00
|
|
|
|
|
|
|
kill $MH
|
|
|
|
kill $DB
|