mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Clarify setup instructions for environment.sh
This commit is contained in:
15
README.md
15
README.md
@@ -17,9 +17,7 @@ To run the API you will need appropriate AWS credentials. See the [Wiki](https:/
|
|||||||
|
|
||||||
### `environment.sh`
|
### `environment.sh`
|
||||||
|
|
||||||
Creating the environment.sh file. Replace [unique-to-environment] with your something unique to the environment.
|
Creating and edit an environment.sh file.
|
||||||
|
|
||||||
Create a local environment.sh file containing the following:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
echo "
|
echo "
|
||||||
@@ -35,11 +33,14 @@ export WERKZEUG_DEBUG_PIN=off
|
|||||||
"> environment.sh
|
"> environment.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTES:
|
Things to change:
|
||||||
|
|
||||||
* Replace the placeholder key and prefix values as appropriate
|
* Replace `YOUR_OWN_PREFIX` with `local_dev_<first name>`.
|
||||||
* The SECRET_KEY and DANGEROUS_SALT should match those in the [notifications-admin](https://github.com/alphagov/notifications-admin) app.
|
* Run the following in the credentials repo to get the API keys.
|
||||||
* The unique prefix for the queue names prevents clashing with others' queues in shared amazon environment and enables filtering by queue name in the SQS interface.
|
|
||||||
|
```
|
||||||
|
notify-pass credentials/providers/api_keys
|
||||||
|
```
|
||||||
|
|
||||||
### Postgres
|
### Postgres
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user