Replies: 1 comment
-
Moved to #1191 as this looks like an actual issue! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I am making a back-end application with an api platform and frankenphp. As well as a front with next-js.
So I communicate via REST API for everything.
I have not encountered any problems during development, however I encounter difficulties during deployment on platform.sh
I use docker for development with the help of Api platform demo.
For deployment I use this command to launch my frankenphp server.
start: ./frankenphp php-server --listen=localhost:$PORT --root=$PLATFORM_DOCUMENT_ROOT --worker=$WORKER --debug --access-log
with the frankenphp app runtime et le mode worker :
env: PORT: '8888' APP_RUNTIME: 'Runtime\FrankenPhpSymfony\Runtime' WORKER: './public/index.php'
and this script provided by platform.sh to install frankenphp on the host machine : script
I don't have any issues when using the backend normally, however I think frankenphp restarts after I ask it for too many simultaneous requests.
Here are the logs from frankenphp when calling multiple api platform endpoints :
I don't get any errors in the application itself when calling.
I know that frankenphp is supposed to start by itself after a certain number of requests but I'm not sure if this is the desired behavior here.
In addition to this I ran tests on my endpoints: :
we see that the server is not accessible after a certain number of requests.
Finnaly here is my php.ini :
I searched a lot but I did not find the answer that could help me. I may have my lconfiguré frankenphp for a pre-prod environment. It would be a pleasure to exchange!
Beta Was this translation helpful? Give feedback.
All reactions