Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ea70ff04
authored
Mar 23, 2017
by
Heechul Kim
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modified app.py to uwsgi-compatible
parent
64604f11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
conf/uwsgi.ini
porch/app.py
conf/uwsgi.ini
View file @
ea70ff04
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
workers
=
2
workers
=
2
master
=
true
master
=
true
chdir
=
/home/%(uid)
venv
=
/home/%(uid)/.envs/porch
chdir
=
/home/%(uid)/porch
manage-script-name
=
true
manage-script-name
=
true
mount
=
/=wsgi:app
mount
=
/=wsgi:app
...
...
porch/app.py
View file @
ea70ff04
...
@@ -67,14 +67,11 @@ def initialize_app(flask_app):
...
@@ -67,14 +67,11 @@ def initialize_app(flask_app):
flask_app
.
register_blueprint
(
blueprint
)
flask_app
.
register_blueprint
(
blueprint
)
def
main
():
initialize_app
(
app
)
initialize_app
(
app
)
if
__name__
==
"__main__"
:
app
.
run
(
app
.
run
(
debug
=
settings
.
FLASK_DEBUG
,
debug
=
settings
.
FLASK_DEBUG
,
host
=
settings
.
FLASK_HOST
,
host
=
settings
.
FLASK_HOST
,
port
=
settings
.
FLASK_PORT
,
port
=
settings
.
FLASK_PORT
,
)
)
if
__name__
==
"__main__"
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment