Skip to content

Commit

Permalink
deploy: create procfile and add requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumDennisIE committed Jul 15, 2023
1 parent 375745e commit b2c3c94
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn summertrails_project.wsgi
Binary file removed summertrails_project/db.sqlite3
Binary file not shown.
31 changes: 28 additions & 3 deletions summertrails_project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
asgiref==3.7.2
blinker==1.4
cryptography==3.4.8
dbus-python==1.2.18
distro==1.7.0
dj-database-url==2.0.0
Django==4.2.3
httplib2==0.20.2
importlib-metadata==4.6.4
jeepney==0.7.1
keyring==23.5.0
launchpadlib==1.10.16
lazr.restfulclient==0.14.4
lazr.uri==1.0.6
more-itertools==8.10.0
oauthlib==3.2.0
Pygments==2.11.2
PyGObject==3.42.1
PyJWT==2.3.0
pyparsing==2.4.7
python-apt==2.4.0
python-dotenv==1.0.0
django==4.2.3


PyYAML==5.4.1
SecretStorage==3.3.1
six==1.16.0
sqlparse==0.4.4
typing_extensions==4.7.1
wadllib==1.3.6
zipp==1.0.0
2 changes: 1 addition & 1 deletion summertrails_project/static/js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mapboxgl.accessToken =
"";
"pk.eyJ1IjoiY2FsbHVtZGVubmlzaWUiLCJhIjoiY2xrMW04a2ZvMDc2aTNsamttOHljdXNjcCJ9.gPaE7goTXyhK9_ICpSsjbg";
const geojson = {
type: "FeatureCollection",
features: [
Expand Down
7 changes: 3 additions & 4 deletions summertrails_project/summertrails_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from pathlib import Path
import os
import dj_database_url
from dotenv import load_dotenv

# Load environment variables from .env file
Expand Down Expand Up @@ -85,11 +86,9 @@
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases

# Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
'default': dj_database_url.parse(os.environ.get("DATABASE_URL"))
}


Expand Down

0 comments on commit b2c3c94

Please sign in to comment.