Remove unneeded firebase environment variables

This commit is contained in:
Jason Robbins 2021-02-24 16:31:01 -05:00
Родитель 9cb625cf1a
Коммит 28840790b5
5 изменённых файлов: 1 добавлений и 18 удалений

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

@ -25,10 +25,7 @@ Create a file named `env_vars.yaml` in the root directory and fill it with:
```yaml
env_variables:
DJANGO_SETTINGS_MODULE: 'settings'
- FIREBASE_SERVER_KEY: <SERVER_KEY>
```
-The `FIREBASE_SERVER_KEY` is the Firebase server key obtained from the [Firebase console](https://firebase.corp.google.com/project/cr-status/settings/cloudmessaging/).
```
### Developing

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

@ -41,14 +41,6 @@ import settings
import models
def get_default_headers():
headers = {
'Authorization': 'key=%s' % settings.FIREBASE_SERVER_KEY,
'Content-Type': 'application/json'
}
return headers
def format_email_body(is_update, feature, changes):
"""Return an HTML string for a notification email body."""
if feature.shipped_milestone:

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

@ -21,9 +21,6 @@ fi
# The directory in which this script resides.
readonly BASEDIR=$(dirname $BASH_SOURCE)
readonly FIREBASE_SERVER_KEY=`cat .fcm_server_key`
# vulcanize $BASEDIR/../static/elements/elements.html -o $BASEDIR/../static/elements/elements.vulcanized.html --config vulcanize_config.json
gulp

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

@ -6,7 +6,6 @@
# The directory in which this script resides.
readonly BASEDIR=$(dirname $BASH_SOURCE)
readonly FIREBASE_SERVER_KEY=`cat .fcm_server_key`
dev_appserver.py -A cr-status \
$BASEDIR/../app.yaml $BASEDIR/../notifier.yaml

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

@ -83,5 +83,3 @@ else:
TEMPLATE_CACHE_TIME = 600 # seconds
SEND_PUSH_NOTIFICATIONS = PROD # Flag to turn off sending push notifications for all users.
FIREBASE_SERVER_KEY = os.environ.get('FIREBASE_SERVER_KEY')