Skip to content

Commit 50db5e8

Browse files
authoredOct 10, 2019
Add Heroku support for Review apps (#7849)
* Add heroku.yml for docker deploys * Grab legal-docs if not present * Add app.json for Heroku pipelines and review apps
1 parent 9e172b7 commit 50db5e8

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
 

‎app.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "Mozilla Bedrock Demos",
3+
"description": "Demo deployments for changes to Mozilla Bedrock.",
4+
"website": "https://www.mozilla.org",
5+
"repository": "https://github.com/mozilla/bedrock",
6+
"logo": "https://www.mozilla.org/media/img/mozorg/mozilla-256.jpg",
7+
"success_url": "/healthz-cron/",
8+
"stack": "container",
9+
"env": {
10+
"ALLOWED_HOSTS": "*",
11+
"CONTENT_CARDS_URL": "https://www-dev.allizom.org/media/",
12+
"CSP_DEFAULT_SRC": "*.allizom.org",
13+
"CSP_EXTRA_FRAME_SRC": "*.mozaws.net",
14+
"DB_DOWNLOAD_IGNORE_GIT": "True",
15+
"DEBUG": "False",
16+
"DEV": "True",
17+
"GTM_CONTAINER_ID": "GTM-MW3R8V",
18+
"LOG_LEVEL": "INFO",
19+
"PROD_DETAILS_STORAGE": "product_details.storage.PDDatabaseStorage",
20+
"RUN_SUPERVISOR": "True",
21+
"SECRET_KEY": {
22+
"description": "A secret key for verifying the integrity of signed cookies, though we don't use them.",
23+
"generator": "secret"
24+
}
25+
}
26+
}

‎bin/sync-all.sh

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ if [ ! -e ./manage.py ]; then
66
cd $script_parent_dir
77
fi
88

9+
# for heroku demos
10+
# heroku doesn't pull git submodules
11+
if [[ ! -d ./vendor-local/src/legal-docs/firefox_privacy_notice ]]; then
12+
rm -rf ./vendor-local/src/legal-docs
13+
git clone --depth 1 https://github.com/mozilla/legal-docs.git vendor-local/src/legal-docs
14+
fi
15+
916
./bin/run-db-download.py --force
1017
./manage.py migrate --noinput
1118
./bin/run-db-update.sh --all || true

‎heroku.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build:
2+
docker:
3+
web: Dockerfile

0 commit comments

Comments
 (0)