You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm starting to use octane in my project and was wondering if it's on purpose that there seems to be little to no use of environment variables to configure the octane server.
Every config in laravel makes extensive use of environment variables (which is perfect for Saas applications!) but the octane configuration seems very limited. Not only that, but having had a look at the artisan commands that octane provides it only seems to accept commandline arguments to specify items such as host, port, workers, etc.
Swoole on the other hand already has environment variables such as SWOOLE_HTTP_HOST and SWOOLE_HTTP_PORT and will use these if you run php artisan swoole:http start. Going back to octane's StartSwooleCommand it seems that it not only doesn't use these environment variables, but also actively clears them by calling forgetEnvironmentVariables().
This all seems very odd to me. Wouldn't it be much better to have in octane's StartCommand::startSwooleServer() something alike the following:
And do something similar for Roadrunner as well.
This would not break any existing code, but allow the usage of environment variables to configure octane.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I'm starting to use octane in my project and was wondering if it's on purpose that there seems to be little to no use of environment variables to configure the octane server.
Every config in laravel makes extensive use of environment variables (which is perfect for Saas applications!) but the octane configuration seems very limited. Not only that, but having had a look at the artisan commands that octane provides it only seems to accept commandline arguments to specify items such as
host
,port
,workers
, etc.Swoole on the other hand already has environment variables such as
SWOOLE_HTTP_HOST
andSWOOLE_HTTP_PORT
and will use these if you runphp artisan swoole:http start
. Going back to octane'sStartSwooleCommand
it seems that it not only doesn't use these environment variables, but also actively clears them by callingforgetEnvironmentVariables()
.This all seems very odd to me. Wouldn't it be much better to have in octane's
StartCommand::startSwooleServer()
something alike the following:instead of the current:
And do something similar for Roadrunner as well.
This would not break any existing code, but allow the usage of environment variables to configure octane.
Beta Was this translation helpful? Give feedback.
All reactions