Skip to content

Commit 56ab4f8

Browse files
first commit for CD
setting up before heroku
1 parent 7c52342 commit 56ab4f8

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web:gunicorn C-Compiler-Code-Generation-CI-CD.wsgi

codeGen/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/3.2/ref/settings/
1111
"""
12-
12+
import os
1313
from pathlib import Path
1414

1515
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -42,6 +42,7 @@
4242

4343
MIDDLEWARE = [
4444
'django.middleware.security.SecurityMiddleware',
45+
'whitenoise.middleware.WhiteNoiseMiddleware',
4546
'django.contrib.sessions.middleware.SessionMiddleware',
4647
'django.middleware.common.CommonMiddleware',
4748
'django.middleware.csrf.CsrfViewMiddleware',
@@ -118,8 +119,11 @@
118119
# Static files (CSS, JavaScript, Images)
119120
# https://docs.djangoproject.com/en/3.2/howto/static-files/
120121

122+
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
121123
STATIC_URL = '/static/'
124+
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
122125

126+
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
123127
# Default primary key field type
124128
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
125129

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
asgiref==3.4.1
22
coverage==5.5
33
Django==3.2.5
4+
gunicorn==20.1.0
45
pytz==2021.1
56
sqlparse==0.4.1
67
typing-extensions==3.10.0.0
8+
whitenoise==5.3.0

runtime

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Python 3.9.6

static/main.css

Whitespace-only changes.

0 commit comments

Comments
 (0)