fix exit container
All checks were successful
Build, Push and Deploy / build-and-deploy (push) Successful in 3m15s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s

This commit is contained in:
eko
2026-03-28 19:30:40 +07:00
parent 2997e30f73
commit eca25818b9
4 changed files with 10 additions and 23 deletions

View File

@@ -1,20 +0,0 @@
camel.main.modeline=true
camel.jbang.ignoreLoadingError=true
camel.jbang.lazyBean=true
camel.jbang.compileWorkDir=.camel-jbang/compile
camel.jbang.health=false
camel.jbang.metrics=false
camel.jbang.console=false
camel.jbang.verbose=false
camel.jbang.camel-version=4.18.0
camel.jbang.springBootVersion=3.5.10
camel.jbang.quarkusVersion=3.31.3
camel.jbang.quarkusGroupId=io.quarkus.platform
camel.jbang.quarkusArtifactId=quarkus-bom
camel.jbang.kameletsVersion=4.17.0
camel.main.routesIncludePattern=file\:/home/eko/.vscode/extensions/redhat.vscode-camelk-0.0.41/resources/simple-java-file/UsedToWarmupDependenciesDownload.java
dependency=mvn\:org.apache.camel\:camel-kamelet\:4.18.0
dependency=mvn\:org.apache.camel.kamelets\:camel-kamelets\:4.17.0
dependency=mvn\:org.apache.camel\:camel-java-joor-dsl\:4.18.0
dependency=mvn\:org.apache.camel\:camel-endpointdsl\:4.18.0
dependency=mvn\:org.apache.camel\:camel-timer\:4.18.0

View File

@@ -37,6 +37,11 @@ jobs:
docker rm kulakpos_web || true
docker pull kode.sadateknologi.site/yanto/kulakpos_web:latest
docker run -d \
--restart unless-stopped \
--health-cmd="curl -f http://localhost:8000 || exit 1" \
--health-interval=30s \
--health-timeout=10s \
--health-retries=3 \
--name kulakpos_web \
--network="host" \
-v /home/act_runner/.env_kulakpos:/var/www/html/.env \

View File

@@ -74,11 +74,13 @@ echo "========================================"
echo "Setup complete. Starting application..."
echo "========================================"
# Start the application
# Start the application with proper error handling
if [ "$MODE" = "dev" ]; then
echo "Starting PHP built-in server on port 8000..."
exec php artisan serve --host=0.0.0.0 --port=8000
# Use exec with error capture
exec php artisan serve --host=0.0.0.0 --port=8000 2>&1 | tee -a /var/log/php-server.log
else
echo "Starting PHP-FPM on port 9000..."
exec php-fpm
# Ensure PHP-FPM is properly configured
exec php-fpm -F
fi