Merge pull request #30 from jkaninda/7.4

7.4
This commit is contained in:
2022-12-04 20:08:31 +02:00
committed by GitHub
2 changed files with 4 additions and 9 deletions

View File

@@ -1,14 +1,9 @@
name: ci name: Docker image build and Push Image to registry
on: on:
push: push:
branches: branches:
- '**' - '**'
pull_request:
types:
- closed
branches:
- '**'
env: env:
#BRANCH_NAME: ${{ github.head_ref || github.ref_name }} #BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

View File

@@ -17,14 +17,14 @@ if [ -f /var/www/html/artisan ]; then
cat > "$TASK" <<EOF cat > "$TASK" <<EOF
[supervisord] [supervisord]
nodaemon=true nodaemon=true
user=root user=www-data
[program:Laravel-scheduler] [program:Laravel-scheduler]
process_name=%(program_name)s_%(process_num)02d process_name=%(program_name)s_%(process_num)02d
command=/bin/sh -c "while [ true ]; do (php /var/www/html/artisan schedule:run --verbose --no-interaction &); sleep 60; done" command=/bin/sh -c "while [ true ]; do (php /var/www/html/artisan schedule:run --verbose --no-interaction &); sleep 60; done"
autostart=true autostart=true
autorestart=true autorestart=true
numprocs=1 numprocs=1
user=root user=www-data
stdout_logfile=/var/log/laravel_scheduler.out.log stdout_logfile=/var/log/laravel_scheduler.out.log
redirect_stderr=true redirect_stderr=true
@@ -34,7 +34,7 @@ if [ -f /var/www/html/artisan ]; then
autostart=true autostart=true
autorestart=true autorestart=true
numprocs=$LARAVEL_PROCS_NUMBER numprocs=$LARAVEL_PROCS_NUMBER
user=root user=www-data
redirect_stderr=true redirect_stderr=true
stdout_logfile=/var/log/laravel_worker.log stdout_logfile=/var/log/laravel_worker.log
EOF EOF