Skip to content

Commit

Permalink
python: fix init.sh path
Browse files Browse the repository at this point in the history
  • Loading branch information
misodengaku committed Nov 8, 2023
1 parent 88c42ff commit 48121d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/python/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
# 初期化
@app.route("/api/initialize", methods=["POST"])
def initialize_handler():
result = subprocess.run(["./init.sh"], capture_output=True, text=True)
app.logger.info("start initialize")
result = subprocess.run(["../sql/init.sh"], capture_output=True, text=True)
if result.returncode != 0:
app.logger.error("init.sh failed with err=", result.stdout)
return result.stderr, 500
Expand Down

0 comments on commit 48121d1

Please sign in to comment.