Skip to content
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

Non-"dev" local dev environments don't tail application logs properly #380

Open
lol768 opened this issue Nov 10, 2023 · 3 comments
Open

Comments

@lol768
Copy link

lol768 commented Nov 10, 2023

Why is the Symfony CLI hardcoded to assume the current env is always dev when showing application logs?

@tucksaun
Copy link
Contributor

I would say this has been done this way at the time because it was easier to do this ways and because this is a development tool (the production-like command was not hardcoded for dev for example).

This can definitely be improved 🙂

@lol768
Copy link
Author

lol768 commented Nov 20, 2023

How would you suggest implementing this aligned to the rest of the tool?

Symfony CLI reads APP_ENV env var from system environment? Parses .env file to pull out APP_ENV (envs.LoadDotEnv)? Accepts a command line symfony-env argument?

@tucksaun
Copy link
Contributor

tucksaun commented Dec 8, 2023

because there's not insurance the application logs into this specific file for any env I would "just" read any .log file in the directory. wdyt @fabpot ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants