#octane:reload seems not load new installed package (fixed by v1.4.2)

24 messages · Page 1 of 1 (latest)

elder moat
#

Laravel Version: 8
PHP Version: 8.1.5
Server & Version: Swoole
Database Driver & Version: Ubuntu

Steps To Reproduce:
Today I face some problem, that in octane active circumstances, if we add some new package to laravel, and reload the octane server, the new package seems not be installed to octane server.

My solution is stop and start the octane, and the package will be loaded, otherwise it will occur that class not found error.

So this in my opinion that today we install the package and we need restart the server, is right?

scarlet drift
#

how did you solve this problem?

hazy blade
scarlet drift
hazy blade
#

You can deploy the new version to a different server, and then switch traffic to the new server to avoid downtime.

scarlet drift
#

So I don't see a good solution to use Octane in production. I spent a week on experiments to understand It )))

hazy blade
#

Octane isn’t magic. You need to stop the process and re-start it to detect any changes.

#

If you don’t want downtime, then you need to implement a zero-download strategy where you deploy it to another server or directory, start the new process, then stop the old process.

scarlet drift
elder moat
scarlet drift
elder moat
#

Restart i think it just reload the code you changed, and the memory seems not to be flushed and loaded

scarlet drift
#

thank you guys, I understood that it doesn't have a simple solution without downtime

elder moat
#

If octane stop that i didnt test whether the server would not receive any request

elder moat
#

Its needed confirm

elder moat
#

Thanks

scarlet drift
elder moat
#

Yes

elder moat
#

octane:reload seems not load new installed package (fixed by v1.4.2)