From 97e04a01a74cf57766ebdfa1644ad7016ddff551 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Mon, 3 Oct 2022 14:53:26 -0400 Subject: [PATCH] Temporarily show cwd on /status --- app/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index cd0e604..f3f81bd 100644 --- a/app/routes.py +++ b/app/routes.py @@ -283,8 +283,8 @@ def git_update() -> None: @writing_blueprint.route('/status', methods=['GET']) def status_page() -> Response: status_message = f"Currently running on '{os.environ.get('UNDERCOVER_SERVER_NAME')}' server" - logging.error(subprocess.check_output(['pwd'])) - current_git_hash = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], shell=True, universal_newlines=True) + current_git_hash = subprocess.check_output(['pwd']) + #current_git_hash = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], shell=True, universal_newlines=True) return make_response(render_template('error.jinja2', status=200, error_text=status_message, extra_text=current_git_hash), 200)