Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
Change dist config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniak274 committed Nov 9, 2019
1 parent 5ad79aa commit 4138bde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ebiznes/settings/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
'kaniak274.service-rent.pl',
]

STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static', 'dist')
]

WEBPACK_MANIFEST_FILE = os.path.join(BASE_DIR, '../manifest-dist.json')

STATIC_ROOT = os.path.join(BASE_DIR, 'static/dist/')

print(STATIC_ROOT)
7 changes: 7 additions & 0 deletions passenger_wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys, os

sys.path.append(os.getcwd())
os.environ['DJANGO_SETTINGS_MODULE'] = "ebiznes.settings.dist"

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

0 comments on commit 4138bde

Please sign in to comment.