Skip to content

Commit

Permalink
🐛 fix: Unless the user is root, the swoole server cannot start on por…
Browse files Browse the repository at this point in the history
…t 80, so change it to port 8000.
  • Loading branch information
UNILORN committed Apr 30, 2024
1 parent 1f9cd51 commit 0152a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Swoole.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
2 changes: 1 addition & 1 deletion deployment/octane/Swoole/supervisord.swoole.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0152a93

Please sign in to comment.