Skip to content

Commit

Permalink
Merge pull request #123 from stefanholek/wsgi-server-heading
Browse files Browse the repository at this point in the history
Move wsgi server configuration heading
  • Loading branch information
mmerickel authored Feb 3, 2024
2 parents 04d10d9 + 75502d3 commit fa0ab95
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
8 changes: 4 additions & 4 deletions {{cookiecutter.repo_name}}/development.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ retry.attempts = 3
setup = {{ cookiecutter.repo_name }}.pshell.setup

{% endif -%}
###
# wsgi server configuration
###

{% if cookiecutter.backend == 'sqlalchemy' -%}
[alembic]
# path to migration scripts
Expand All @@ -47,6 +43,10 @@ file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s
# file_template = %%(rev)s_%%(slug)s

{% endif -%}
###
# wsgi server configuration
###

[server:main]
use = egg:waitress#main
listen = localhost:6543
Expand Down
12 changes: 7 additions & 5 deletions {{cookiecutter.repo_name}}/production.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ retry.attempts = 3
setup = {{ cookiecutter.repo_name }}.pshell.setup

{% endif -%}
###
# wsgi server configuration
###
{% if cookiecutter.backend == 'sqlalchemy' %}
{% if cookiecutter.backend == 'sqlalchemy' -%}
[alembic]
# path to migration scripts
script_location = {{ cookiecutter.repo_name }}/alembic
file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s
# file_template = %%(rev)s_%%(slug)s
{% endif %}

{% endif -%}
###
# wsgi server configuration
###

[server:main]
use = egg:waitress#main
listen = *:6543
Expand Down
12 changes: 7 additions & 5 deletions {{cookiecutter.repo_name}}/testing.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ retry.attempts = 3
setup = {{ cookiecutter.repo_name }}.pshell.setup

{% endif -%}
###
# wsgi server configuration
###
{% if cookiecutter.backend == 'sqlalchemy' %}
{% if cookiecutter.backend == 'sqlalchemy' -%}
[alembic]
# path to migration scripts
script_location = {{ cookiecutter.repo_name }}/alembic
file_template = %%(year)d%%(month).2d%%(day).2d_%%(rev)s
# file_template = %%(rev)s_%%(slug)s
{% endif %}

{% endif -%}
###
# wsgi server configuration
###

[server:main]
use = egg:waitress#main
listen = localhost:6543
Expand Down

0 comments on commit fa0ab95

Please sign in to comment.