Skip to content

Commit 398d601

Browse files
committed
Fix paths and do not make a daemon
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent 4eba88d commit 398d601

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tutorials/a-simple-walkthrough/astre.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ def run():
4545
"log.screen": True,
4646
"server.socket_port": 8444,
4747
"server.ssl_module": "builtin",
48-
"server.ssl_private_key": os.path.join(cur_dir, "../../key.pem"),
49-
"server.ssl_certificate": os.path.join(cur_dir, "../../cert.pem")
48+
"server.ssl_private_key": os.path.join(cur_dir, "key.pem"),
49+
"server.ssl_certificate": os.path.join(cur_dir, "cert.pem")
5050
})
51-
Daemonizer(cherrypy.engine).subscribe()
5251
PIDFile(cherrypy.engine, 'astre.pid').subscribe()
5352
cherrypy.quickstart(Root())
5453

tutorials/a-simple-walkthrough/sunset.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import requests
66

77
cur_dir = os.path.abspath(os.path.dirname(__file__))
8-
key_path = os.path.join(cur_dir, "../../key.pem")
9-
cert_path = os.path.join(cur_dir, "../../cert.pem")
8+
key_path = os.path.join(cur_dir, "key.pem")
9+
cert_path = os.path.join(cur_dir, "cert.pem")
1010

1111

1212
class Root:
@@ -35,7 +35,6 @@ def run():
3535
"server.ssl_private_key": key_path,
3636
"server.ssl_certificate": cert_path
3737
})
38-
Daemonizer(cherrypy.engine).subscribe()
3938
PIDFile(cherrypy.engine, 'sunset.pid').subscribe()
4039
cherrypy.quickstart(Root())
4140

0 commit comments

Comments
 (0)