Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reload failed #229

Open
z1q1q7 opened this issue Mar 22, 2019 · 0 comments
Open

reload failed #229

z1q1q7 opened this issue Mar 22, 2019 · 0 comments

Comments

@z1q1q7
Copy link

z1q1q7 commented Mar 22, 2019

When I use kill -SIGHUP pid to reload gitautodeploy process, the process quit with the following logs:

2019-03-20 20:13:12,640 [ERROR]  self.serve_forever()
2019-03-20 20:13:12,640 [ERROR]  File "gitautodeploy/gitautodeploy.py", line 511, in serve_forever
2019-03-20 20:13:12,641 [ERROR]
2019-03-20 20:13:12,641 [ERROR]  os.chdir(wwwroot)
2019-03-20 20:13:12,641 [ERROR]  OSError
2019-03-20 20:13:12,641 [ERROR]  :
2019-03-20 20:13:12,641 [ERROR]  [Errno 2] No such file or directory: '................./gitautodeploy/wwwroot/gitautodeploy/wwwroot'
2019-03-20 20:13:12,641 [ERROR]

I found a bug here. After first start, the program change directory to wwwroot

wwwroot = os.path.join(os.path.dirname(os.path.realpath(__file__)), "wwwroot")
os.chdir(wwwroot)

When reload, wwwroot changed to a nested error place, so the program quit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant