Update CONTRIBUTING.md

Add how-to for storageProfile config

// FREEBIE
This commit is contained in:
lilia 2017-04-12 20:38:49 -07:00 committed by Scott Nonnenberg
parent bc80e5e3b6
commit 75f4c3c522
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
1 changed files with 19 additions and 3 deletions

View File

@ -68,10 +68,26 @@ mobile, **you must build a mobile client that targets the staging server**
You should now be able to use the extension.
## Chrome profiles
## Storage profiles
Don't have any friends to help you test the extension? Make a couple of Chrome
profiles. Each one will need its own Google account and Google Voice number.
To facilitate registration of multiple clients from one machine/user for
development purposes, you can configure multiple storage profiles and switch
between them using the NODE_APP_INSTANCE environment variable.
```
// config/local-alice.json
{
"storageProfile": "aliceProfile"
}
> NODE_APP_INSTANCE=alice npm start
```
This changes the [userData](https://electron.atom.io/docs/all/#appgetpathname)
directory from `%appData%/Signal` to `%appData%/Signal-aliceProfile`.
Each profile can be independently linked or registered as standalone.
Each one will need its own Google account and Google Voice number.
Each one will have to repeat the setup process documented above, including
re-accepting the staging server cert under each profile. This is a tedious
process, but once you are done you will be able to send messages back and forth