Skip to content

Commit

Permalink
Added digital ocean to allowed hosts. Updated digital ocean deploy sc…
Browse files Browse the repository at this point in the history
…ript.
  • Loading branch information
jessamynsmith committed Jan 25, 2023
1 parent dcef976 commit c51cfd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ nosetests.xml
.idea
.idea/*

venv/*
venv*/*

.env

.python-version
2 changes: 1 addition & 1 deletion eggtimer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Use env setting if available, otherwise make debug false
DEBUG = bool(int(os.environ.get('DJANGO_DEBUG', '0')))

ALLOWED_HOSTS = ['eggtimer.herokuapp.com', 'localhost', '127.0.0.1']
ALLOWED_HOSTS = ['eggtimer.herokuapp.com', '165.227.42.38', 'localhost', '127.0.0.1']
CORS_ORIGIN_ALLOW_ALL = True

SECURE_SSL_REDIRECT = bool(int(os.environ.get('DJANGO_ENABLE_SSL', '1')))
Expand Down
3 changes: 3 additions & 0 deletions scripts/deploy_on_digital_ocean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ else
git push heroku master
fi

. venv/bin/activate
pip install -r requirements.txt
npm install
heroku run python manage.py collectstatic --noinput
heroku run python manage.py migrate --noinput --app eggtimer

0 comments on commit c51cfd8

Please sign in to comment.