Merge pull request #767 from chilts/more-docs-on-processes

Explain what processes start up when running npm start
This commit is contained in:
Andrew Chilton 2014-07-23 15:53:40 +12:00
Родитель c3411f540f 7b3d0330b4
Коммит 7b83874452
1 изменённых файлов: 10 добавлений и 2 удалений

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

@ -36,11 +36,19 @@ Clone the git repository and install dependencies:
cd fxa-auth-server
npm install
To start the server, run:
To start the server in dev mode (ie. `NODE_ENV=dev`), run:
npm start
It will listen on http://localhost:9000 by default.
This runs a script `scripts/start-local.sh` as defined in `package.json`. This will start up
4 services, three of which listen on the following ports (by default):
* `bin/key_server.js` on port 9000
* `test/mail_helper.js` on port 9001
* `./node_modules/fxa-customs-server/bin/customs_server.js` on port 7000
* `bin/notifier.js` (no port)
When you `Ctrl-c` your server, all 4 processes will be stopped.
## Testing