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

18 строки
401 B
Bash
Исходник Постоянная ссылка Обычный вид История

#!/usr/bin/env bash
set -euo pipefail
node ./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