diff --git a/.camel-jbang/camel-jbang-run.properties b/.camel-jbang/camel-jbang-run.properties deleted file mode 100644 index 975a9d80..00000000 --- a/.camel-jbang/camel-jbang-run.properties +++ /dev/null @@ -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 diff --git a/.camel-jbang/compile/UsedToWarmupDependenciesDownload.class b/.camel-jbang/compile/UsedToWarmupDependenciesDownload.class deleted file mode 100644 index c7b91293..00000000 Binary files a/.camel-jbang/compile/UsedToWarmupDependenciesDownload.class and /dev/null differ diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 9f1b1f89..2f509e4d 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -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 \ diff --git a/entrypoint.sh b/entrypoint.sh index 47b96e1e..94901853 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 \ No newline at end of file