From 0152a939a88f16ad94b2a2f2c2883bb82793e768 Mon Sep 17 00:00:00 2001 From: UNILORN Date: Tue, 30 Apr 2024 10:33:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Unless=20the=20user=20is?= =?UTF-8?q?=20root,=20the=20swoole=20server=20cannot=20start=20on=20port?= =?UTF-8?q?=2080,=20so=20change=20it=20to=20port=208000.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Swoole.Dockerfile | 2 +- deployment/octane/Swoole/supervisord.swoole.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Swoole.Dockerfile b/Swoole.Dockerfile index 4152a21..24cca7d 100644 --- a/Swoole.Dockerfile +++ b/Swoole.Dockerfile @@ -156,7 +156,7 @@ RUN chmod +x /usr/local/bin/start-container RUN cat deployment/utilities.sh >> ~/.bashrc -EXPOSE 80 +EXPOSE 8000 ENTRYPOINT ["start-container"] diff --git a/deployment/octane/Swoole/supervisord.swoole.conf b/deployment/octane/Swoole/supervisord.swoole.conf index e12790a..2d00f51 100644 --- a/deployment/octane/Swoole/supervisord.swoole.conf +++ b/deployment/octane/Swoole/supervisord.swoole.conf @@ -6,7 +6,7 @@ pidfile=/var/run/supervisord.pid [program:octane] process_name=%(program_name)s_%(process_num)02d -command=php %(ENV_ROOT)s/artisan octane:start --server=swoole --host=0.0.0.0 --port=80 +command=php %(ENV_ROOT)s/artisan octane:start --server=swoole --host=0.0.0.0 --port=8000 user=%(ENV_USER)s autostart=true autorestart=true