Skip to content

Commit

Permalink
Merge branch '2.1' of https://github.com/MasoniteFramework/core into 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Jan 11, 2019
2 parents 955e390 + acb2092 commit a77c5dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion masonite/providers/WhitenoiseProvider.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from whitenoise import WhiteNoise

from masonite.provider import ServiceProvider
from config import application


class WhitenoiseProvider(ServiceProvider):
Expand All @@ -15,7 +16,7 @@ def register(self):
def boot(self):
"""Wrap the WSGI server in a whitenoise container."""
self.app.bind('WSGI', WhiteNoise(
self.app.make('WSGI'), root=self.app.make('Application').STATIC_ROOT))
self.app.make('WSGI'), root=self.app.make('Application').STATIC_ROOT, autorefresh=application.DEBUG))

for location, alias in self.app.make('Storage').STATICFILES.items():
self.app.make('WSGI').add_files(location, prefix=alias)
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'Jinja2>=2,<3',
'python-dotenv>=0.8,<0.9',
'passlib>=1.7,<1.8',
'whitenoise>=3.3,<3.4',
'whitenoise>=3.3',
'pytest>=3.6,<4',
'masonite-entry>=0.0.0,<=0.9.99',
'masonite-scheduler>=1.0.0,<=1.0.99',
Expand All @@ -51,7 +51,7 @@
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',

# Indicate who your project is intended for
'Intended Audience :: Developers',
Expand Down

0 comments on commit a77c5dc

Please sign in to comment.