Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jvenn
Commits
0c851ed6
Commit
0c851ed6
authored
Dec 08, 2016
by
Jerome Mariette
Browse files
add deamon option to the server
parent
3d5c5758
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/jvenn_server.py
View file @
0c851ed6
...
...
@@ -115,6 +115,10 @@ if __name__ == '__main__':
parser
.
add_argument
(
"--daemon"
,
action
=
"store_true"
,
dest
=
"daemon"
,
default
=
False
,
help
=
"Run the server as daemon"
)
args
=
vars
(
parser
.
parse_args
())
if
args
[
"daemon"
]:
from
cherrypy.process.plugins
import
Daemonizer
Daemonizer
(
cherrypy
.
engine
).
subscribe
()
app_conf
=
{
'/'
:
{
'tools.staticdir.root'
:
WEB_DIR
},
...
...
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