Skip to content

Commit c5d9ce1

Browse files
committed
fix: the htmx app does not use /api as a root path
1 parent dd03916 commit c5d9ce1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

{{cookiecutter.project_slug}}/entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ set -eox pipefail
33

44
if [ "$ENV" != 'production' ]; then
55
exec hypercorn --reload --worker-class={{cookiecutter.worker_class}} --bind=0.0.0.0:5000 \
6-
--error-logfile=- --root-path /api \
7-
{{cookiecutter.project_slug}}.main:app
6+
--error-logfile=- {{cookiecutter.project_slug}}.main:app
87
else
98
exec hypercorn --worker-class={{cookiecutter.worker_class}} --bind=0.0.0.0:5000 --error-logfile=- \
10-
--error-logfile=- --root-path /api \
11-
{{cookiecutter.project_slug}}.main:app
9+
--error-logfile=- {{cookiecutter.project_slug}}.main:app
1210
fi

0 commit comments

Comments
 (0)