Skip to content

Commit

Permalink
Fix #15: fix wsgi app init
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht authored and Zeitsperre committed Jan 5, 2021
1 parent 18b6085 commit 60a04b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions {{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.cache
.pytest_cache
.coverage
.coverage.*
.cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
from .processes import processes


def application(environ, start_response):
app = create_app()
return app(environ, start_response)


def create_app(cfgfiles=None):
config_files = [os.path.join(os.path.dirname(__file__), 'default.cfg')]
if cfgfiles:
Expand All @@ -17,3 +12,6 @@ def create_app(cfgfiles=None):
config_files.append(os.environ['PYWPS_CFG'])
service = Service(processes=processes, cfgfiles=config_files)
return service


application = create_app()

0 comments on commit 60a04b0

Please sign in to comment.