-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not get public assets? #9
Comments
Cann't. When I use Because the workerman version is so old in
Document: https://www.workerman.net/doc/workerman/http/response.html |
|
For now Adapterman only use Workerman 3.5. Initally, Adapterman will be an App Server, and use a web server for the static files (Nginx, Nginx Unit, Apache, ...) We can add to server static files too, but I think that is better handled by web servers : serve statics assets, TLS termination, Proxy, ... But we are open to any ideas. |
In theory, if anybody want to use Adapterman with a popular framework, it's only for the performance. The only way to scale more, it's use Adapterman , without any webserver, in separate servers. And you use a load balanced proxy server, to scale still more. Adapterman help to run any framework. But if you want to use all the features of Workerman, you can create more apps outside of your framework app. |
Example with Nginx:
|
it already proxy_pass to application, but cann't load laravel public path files. |
We only change the php-fpm for a proxy_pass, the rest of the config is the same than normal Laravel. Example normal Laravel config:
With Adapterman:
|
The config is the same than Nodejs or others app servers. |
We need to test more the session. |
can you give me your mail address? i can give you site address and account/password. |
maybe i should try create a new laravel project and install dcat/laravel-admin, then test adapterman in tomorrow. |
joanhey @ kumbiaphp.com |
What type of session do you use: file, redis, memcached, ... ? |
In Workerman 4 we can use more session types, but not in v3.5 |
redis |
So I'll need to check the redis code in Laravel for now. |
And like before, we can create a Workerman session than don't need Redis. |
already send mail to you. |
Remember that the Eloquent ORM is very slow. Also when use it with Workerman. |
ok, have some suggest give me? |
Sorry, Maybe i need to sleep.in tommorrow i will be see your Leaving a message. |
OK, see you tomorrow. But Adapterman use Workerman v3.5, and in this version the session is fixed to filesystem. |
Try temporally to use the default filesystem session. |
Some apps will not work with Workerman, but also not with Octane. |
If you only use 1 server, you don't need Redis. In Linux, using filesytem session, that session files will end up in Linux Filesystem Cache (RAM). Also normally the session use more read than write. |
After test your app, the session is working with redis too. |
hello, in my app, use fpm, it can successful, in workerman, it run failed. i can't know different before php-fpm and workerman cli. I already fix a application error. now it can run in php-fpm mode. |
When I run it in laravel project and use dcat-admin + tenancy it say those error. but in php-fpm, it can run success.
The text was updated successfully, but these errors were encountered: