Skip to content

Make specific access on dev environment optional #3

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

Merged
merged 1 commit into from
Jul 5, 2017

Conversation

mickaelandrieu
Copy link
Contributor

Why? Because as you now have only one front controller, it is always deployed in production :)

By default, this part should be now disabled and let advanced users write every custom action they need to do instead of force every Symfony developer to remove this damn piece of code every time on every project.

And don't tell me it's insecure: it's really hard to make APP_DEBUG env variable in production by mistake 👍

@dunglas
Copy link
Owner

dunglas commented Jun 18, 2017

It is not straightforward for newcomers. You cannot start coding without Uncommenting those lines...
Usually you will not use this Docker compose file to deploy in production. APP_DEBUG will not be set until you do it explicitly, thus this code will not be executed.

@mickaelandrieu
Copy link
Contributor Author

mickaelandrieu commented Jun 18, 2017

. You cannot start coding without Uncommenting those lines...

Why? It's quite the opposite! Most of the time, even if you have exported APP_DEBUG you still can't access your dev environment (try it^^)

@dunglas
Copy link
Owner

dunglas commented Jun 25, 2017

It works on Linux and Mac but it seems to not work as expected on Windows.

@dunglas
Copy link
Owner

dunglas commented Jun 26, 2017

Can you just update this PR to remove this block totally as I've done in the framework bundle's recipe?

Thanks Mickaël!

@mickaelandrieu
Copy link
Contributor Author

Yes Kevin, I'll do it probably tonight :)

Mickaël

@mickaelandrieu mickaelandrieu force-pushed the patch-2 branch 2 times, most recently from ae5308f to 7f900dd Compare June 27, 2017 13:15
@mickaelandrieu
Copy link
Contributor Author

Done (sorry for the delay) and thank you to have done it at Symfony's level :)

@dunglas
Copy link
Owner

dunglas commented Jun 27, 2017

In fact, you can just remove the web directory now that this patch is in Flex!

@mickaelandrieu
Copy link
Contributor Author

mickaelandrieu commented Jun 27, 2017

Yeah, I wanted to ask you why we keep the web folder :D I do it now sir :)

Do I have to update the docker-compose configuration too? I'm worried about theses lines:

- ./web:/srv/app/web:ro && - ./web:/srv/app/web:rw

I don't know well Flex, will it create a new web folder for us?

@dunglas
Copy link
Owner

dunglas commented Jul 5, 2017

I don't know well Flex, will it create a new web folder for us?

Yes it will. No problem for this line.

@dunglas dunglas merged commit 051cee5 into dunglas:master Jul 5, 2017
@dunglas
Copy link
Owner

dunglas commented Jul 5, 2017

Thanks @mickaelandrieu!

@mickaelandrieu mickaelandrieu deleted the patch-2 branch July 5, 2017 22:59
VitaliyMinenko pushed a commit to VitaliyMinenko/notofication-service that referenced this pull request Sep 16, 2024
Make specific access on dev environment optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants