chore(scripts): fix up npm start-remote script, switch to fxaci box (#5265)

Make it easier for contributors to get started and get the script working again
This commit is contained in:
Vlad Filippov 2017-07-21 12:49:10 -04:00 коммит произвёл GitHub
Родитель 79de14e37c
Коммит 95c16fbbeb
4 изменённых файлов: 26 добавлений и 14 удалений

Просмотреть файл

@ -9,7 +9,7 @@
"shrinkwrap": "npmshrink:prod",
"start": "node scripts/check-local-config && grunt server",
"start-production": "grunt build && CONFIG_FILES=server/config/local.json,server/config/production.json grunt serverproc:dist",
"start-remote": "node scripts/check-local-config && CONFIG_FILES=server/config/local.json,server/config/content.json grunt server",
"start-remote": "scripts/run_remote_dev.sh",
"test": "intern-runner config=tests/intern",
"test-circle": "intern-runner config=tests/intern_functional_circle fxaAuthRoot=https://fxaci.dev.lcip.org/auth fxaEmailRoot=http://restmail.net fxaOauthApp=https://oauth-fxaci.dev.lcip.org fxaUntrustedOauthApp=https://321done-fxaci.dev.lcip.org fxaProduction=true bailAfterFirstFailure=true",
"test-functional": "intern-runner config=tests/intern_functional",

12
scripts/run_remote_dev.sh Executable file
Просмотреть файл

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
node scripts/check-local-config
CONFIG_FILES=server/config/local.json,server/config/fxaci.json grunt server &
MH=$!
grunt sass watch
kill $MH

Просмотреть файл

@ -1,13 +0,0 @@
{
"allowed_parent_origins": ["https://123done-content.dev.lcip.org/"],
"csp": {
"enabled": false
},
"fxaccount_url": "https://content.dev.lcip.org/auth",
"oauth_client_id": "ea3ca969f8c6bb0d",
"oauth_url": "https://oauth-content.dev.lcip.org",
"profile_images_url": "https://content.dev.lcip.org/profile",
"profile_url": "https://content.dev.lcip.org/profile",
"public_url": "http://127.0.0.1:3030",
"use_https": false
}

13
server/config/fxaci.json Normal file
Просмотреть файл

@ -0,0 +1,13 @@
{
"allowed_parent_origins": ["https://123done-fxaci.dev.lcip.org/"],
"csp": {
"enabled": false
},
"fxaccount_url": "https://fxaci.dev.lcip.org/auth",
"oauth_client_id": "ea3ca969f8c6bb0d",
"oauth_url": "https://oauth-fxaci.dev.lcip.org",
"profile_images_url": "https://fxaci.dev.lcip.org/profile",
"profile_url": "https://fxaci.dev.lcip.org/profile",
"public_url": "http://127.0.0.1:3030",
"use_https": false
}