From 1a101bfda48b7e8c95ebe451b5bbf73903cd61a4 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 May 2023 09:20:01 +0200 Subject: [PATCH] hmm --- docker/prod-ssu/Dockerfile | 1 + docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run | 2 ++ docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/type | 1 + .../etc/s6-overlay/s6-rc.d/user/contents.d/scheduler-worker | 0 4 files changed, 4 insertions(+) create mode 100644 docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run create mode 100644 docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/type create mode 100644 docker/prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/scheduler-worker diff --git a/docker/prod-ssu/Dockerfile b/docker/prod-ssu/Dockerfile index 14a5a21d1..01c984bd2 100644 --- a/docker/prod-ssu/Dockerfile +++ b/docker/prod-ssu/Dockerfile @@ -27,3 +27,4 @@ RUN echo "alias a='php artisan'" >>/etc/bash.bashrc RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc RUN echo "alias cda='composer dump-autoload'" >>/etc/bash.bashrc RUN echo "alias run='./scripts/run'" >>/etc/bash.bashrc +RUN echo "alias logs='logs -f storage/logs/laravel.log'" >>/etc/bash.bashrc diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run new file mode 100644 index 000000000..77abe77e4 --- /dev/null +++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +su - webuser -c "php /var/www/html/artisan schedule:run" diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/type b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/type new file mode 100644 index 000000000..5883cff0c --- /dev/null +++ b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/scheduler-worker/type @@ -0,0 +1 @@ +longrun diff --git a/docker/prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/scheduler-worker b/docker/prod-ssu/etc/s6-overlay/s6-rc.d/user/contents.d/scheduler-worker new file mode 100644 index 000000000..e69de29bb