Skip to content

Commit

Permalink
Fix gunicorn execution
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Aug 12, 2021
1 parent f68ca43 commit e709164
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
pip list
inv i18n --compile docs run -p
inv i18n --compile docs run -p -g
3 changes: 2 additions & 1 deletion src/ARte/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
from django.contrib import admin
from django.urls import path, include
import debug_toolbar
import os

urlpatterns = [
path('admin/', admin.site.urls),
path(os.getenv('DJANGO_ADMIN_URL', 'admin/'), admin.site.urls),
path('', include('core.urls')),
path('', include('core.routes')),
path('users/', include('users.urls')),
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run(ctx, ssl=False, gunicorn=False, postgres=False, whitenoise=False):
Run development server
"""
if gunicorn:
ctx.run('cd src/ARte && gunicorn --worker-class=gevent --worker-connections=10000 --workers=4 --log-level debug --bind 0.0.0.0:8000 config.wsgi', env={"DEV_DB":"False"})
ctx.run('cd src/ARte && gunicorn --worker-connections=10000 --workers=4 --log-level debug --bind 0.0.0.0:8000 config.wsgi', env={"DEV_DB":"False"})
else:
manage(ctx, "runserver 0.0.0.0:8000", postgres, whitenoise)

Expand Down

0 comments on commit e709164

Please sign in to comment.