зеркало из https://github.com/mozilla/fxa.git
chore(docs): Add docs for running Hello Service
This commit is contained in:
Родитель
84fa42af5d
Коммит
89844f3f50
25
README.md
25
README.md
|
@ -184,9 +184,30 @@ To use the [fxa-oauth-console](https://github.com/mozilla/fxa-oauth-console) to
|
||||||
```
|
```
|
||||||
NODE_ENV=dev DB=mysql node bin/server.js
|
NODE_ENV=dev DB=mysql node bin/server.js
|
||||||
```
|
```
|
||||||
and
|
and
|
||||||
```
|
```
|
||||||
NODE_ENV=dev DB=mysql node bin/internal.js
|
NODE_ENV=dev DB=mysql node bin/internal.js
|
||||||
```
|
```
|
||||||
|
|
||||||
*******
|
*******
|
||||||
|
|
||||||
|
### Hello/Loop Setup
|
||||||
|
|
||||||
|
To get the Hello service setup and configured to run with a local version of Firefox Accounts, you need to run a couple commands after running `npm run postinstall` and `./pm2 start servers.json`.
|
||||||
|
|
||||||
|
#### Install Hello Service
|
||||||
|
```bash
|
||||||
|
npm run install-extras
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Start Hello service
|
||||||
|
|
||||||
|
Note: The Hello Service currently only supports node version 0.10.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nvm install 0.10
|
||||||
|
nvm exec 0.10 ./pm2 start servers_extra.json
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Run
|
||||||
|
Once services have started, run `npm start` to open Firefox with a local profile. Access the Hello service as you normally would.
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"description": "An easy way to contribute to Firefox Accounts",
|
"description": "An easy way to contribute to Firefox Accounts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "_scripts/postinstall.sh",
|
"postinstall": "_scripts/postinstall.sh",
|
||||||
|
"install-extras": "_scripts/install_extras.sh",
|
||||||
"update": "./pm2 kill && _scripts/update_all.sh",
|
"update": "./pm2 kill && _scripts/update_all.sh",
|
||||||
"start": "node _scripts/start.js",
|
"start": "node _scripts/start.js",
|
||||||
"test": "node test/functional.js --suite=full",
|
"test": "node test/functional.js --suite=full",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"name": "loop-server PORT 10222",
|
"name": "loop-server PORT 10222",
|
||||||
"script": "loop/index.js",
|
"script": "loop/index.js",
|
||||||
"cwd": "loop-server",
|
"cwd": "loop-server",
|
||||||
"env": {
|
"env": {
|
||||||
"NODE_ENV": "test",
|
"NODE_ENV": "test",
|
||||||
"PORT": "10222",
|
"PORT": "10222",
|
||||||
"CONFIG_FILES": "../_scripts/configs/loop.json"
|
"CONFIG_FILES": "../_scripts/configs/loop.json"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче