Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(deploy): fix entrypoint exit codes, scan triggers, and docs drift

randoneering47ff644da544
diff --git a/apps/docs/core/installation/docker-compose.mdx b/apps/docs/core/installation/docker-compose.mdx
index 6a530cdde..2fe2c6e8a 100644
--- a/apps/docs/core/installation/docker-compose.mdx
+++ b/apps/docs/core/installation/docker-compose.mdx
@@ -13,8 +13,6 @@ services:
image: postgres:16-alpine
env_file:
- .env
- ports:
- - "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
diff --git a/deploy/kaneo-entrypoint.sh b/deploy/kaneo-entrypoint.sh
index c2aff1ae6..4eb30742f 100644
--- a/deploy/kaneo-entrypoint.sh
+++ b/deploy/kaneo-entrypoint.sh
@@ -31,16 +31,11 @@ done
cleanup
-api_status=0
-nginx_status=0
+wait "$api_pid" || api_status=$?
+wait "$nginx_pid" || nginx_status=$?
-if ! wait "$api_pid"; then
- api_status=$?
-fi
-
-if ! wait "$nginx_pid"; then
- nginx_status=$?
-fi
+api_status=${api_status:-0}
+nginx_status=${nginx_status:-0}
if [ "$api_status" -ne 0 ]; then
exit "$api_status"