chore: Add cron service and crontab for Laravel cron jobs

This commit is contained in:
2024-07-03 20:36:21 +02:00
parent e95066416f
commit 13cd0e1ea2
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -47,5 +47,8 @@ if [ -f /environment/.env ]; then
cp /environment/.env /workspace/.env
fi
# Start the cron service
service cron start
# Start the application with pm2
exec pm2-runtime "php artisan serve --host=0.0.0.0 --port=8000"