Skip to content

Commit 26ed57e

Browse files
committed
gunicorn deploy test
1 parent c4d26ad commit 26ed57e

6 files changed

Lines changed: 15 additions & 346 deletions

File tree

Pipfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 320 deletions
This file was deleted.

apiconfig/health_check.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def health_check(application, health_url):
2+
def health_check_wrapper(environ, start_response):
3+
if environ.get('PATH_INFO') == health_url:
4+
start_response('200 OK', [('Content-Type', 'text/plain')])
5+
return []
6+
return application(environ, start_response)
7+
return health_check_wrapper

apiconfig/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@
146146
# Static files (CSS, JavaScript, Images)
147147
# https://docs.djangoproject.com/en/2.1/howto/static-files/
148148

149-
STATIC_URL = '/static/'
149+
#STATIC_URL = '/static/'
150150

151151
django_heroku.settings(locals())

apiconfig/uwsgi.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[uwsgi]
2+
http-socket = :$(PORT)
3+
master = true
4+
processes = 4
5+
die-on-term = true
6+
module = apiconfig.wsgi:application
7+
memory-report = true

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ pyyaml==3.13
3838
requests==2.20.1
3939
uritemplate==3.0.0
4040
urllib3==1.24.1
41-
uwsgi==2.0.17.1
4241
virtualenv-clone==0.4.0
4342
virtualenv==16.1.0
4443
whitenoise==4.1.2

0 commit comments

Comments
 (0)