fxa-auth-server/scripts/start-local-mysql.sh

19 строки
445 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
node ./scripts/gen_keys.js
node ./fxa-oauth-server/scripts/gen_keys.js
node ./scripts/gen_vapid_keys.js
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=$!
node ./bin/key_server.js
kill $MH
kill $DB