Closed rajadain closed 5 years ago
Add support for staging and production domains for the beekeepers app. The ?beekeepers query string parameter is kept for local development.
?beekeepers
Connects #432
Edit your /etc/hosts file ($ sudo vim /etc/hosts), and add this line at the very bottom:
/etc/hosts
$ sudo vim /etc/hosts
127.0.0.1 app.beescape.org
Check out this branch
Add the following line to base.py (to allow this domain during development):
base.py
diff --git a/src/icp/icp/settings/base.py b/src/icp/icp/settings/base.py index 5bbb8ceb..b4126c6d 100644 --- a/src/icp/icp/settings/base.py +++ b/src/icp/icp/settings/base.py @@ -208,6 +208,7 @@ SECRET_KEY = get_env_setting('DJANGO_SECRET_KEY') ALLOWED_HOSTS = [ '.internal.azavea.com', 'localhost', + 'app.beescape.org', ] # END SITE CONFIGURATION
Go to http://app.beescape.org:8000/ and ensure you see the beekeepers app.
Go to http://localhost:8000/?beekeepers and ensure you see the beekeepers app.
Go to http://localhost:8000/ and ensure you see the Pollination Mapper.
Remove the added line from base.py ($ git reset --hard HEAD)
$ git reset --hard HEAD
Remove the added line from /etc/hosts
Overview
Add support for staging and production domains for the beekeepers app. The
?beekeepers
query string parameter is kept for local development.Connects #432
Demo
Testing Instructions
Edit your
/etc/hosts
file ($ sudo vim /etc/hosts
), and add this line at the very bottom:127.0.0.1 app.beescape.org
Check out this branch
Add the following line to
base.py
(to allow this domain during development):Go to http://app.beescape.org:8000/ and ensure you see the beekeepers app.
Go to http://localhost:8000/?beekeepers and ensure you see the beekeepers app.
Go to http://localhost:8000/ and ensure you see the Pollination Mapper.
Remove the added line from
base.py
($ git reset --hard HEAD
)Remove the added line from
/etc/hosts