Remove unneeded firebase environment variables
This commit is contained in:
Родитель
9cb625cf1a
Коммит
28840790b5
|
@ -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')
|
||||
|
|
Загрузка…
Ссылка в новой задаче