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

make Developer Mode controllable by environment variable for all execution paths #1445

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

colinmollenhour
Copy link
Member

This allows developer mode to easily be controlled by an environment variable, for example set in the docker container and moves the logic to Mage.php so it can work from any script (index.php, api.php, get.php, cron.php, custom scripts). It is enabled by default in the bundled docker-based environment.

…using environment variable. Relocate switch to Mage.php to allow for CLI.
@github-actions github-actions bot added htaccess Mage.php Relates to app/Mage.php labels Feb 3, 2021
@joshua-bn
Copy link
Contributor

I've had this code for so long I didn't realize it was a customization. The only difference is I put it in bootstrap.php.

joshua-bn
joshua-bn previously approved these changes Feb 3, 2021
kkrieger85
kkrieger85 previously approved these changes Feb 3, 2021
Copy link
Contributor

@kkrieger85 kkrieger85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Thank you

sreichel
sreichel previously approved these changes Mar 2, 2021
Copy link
Contributor

@sreichel sreichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but why if ( ! empty? ... CS and CBF is on vacation? ;)

@colinmollenhour
Copy link
Member Author

Thanks, but why if ( ! empty? ... CS and CBF is on vacation? ;)

Oops.. that's my habitual style, I find it a lot easier to read. :D
I'll update.

app/Mage.php Outdated Show resolved Hide resolved
@colinmollenhour colinmollenhour dismissed stale reviews from sreichel and kkrieger85 via b5f6492 March 4, 2021 21:28
@sreichel
Copy link
Contributor

sreichel commented Mar 4, 2021

Sorry for being pandetic :)

@sreichel sreichel merged commit 08d41c2 into OpenMage:1.9.4.x Mar 11, 2021
@sreichel sreichel added this to the Release 19.4.12 / 20.0.8 milestone Mar 11, 2021
@github-actions
Copy link
Contributor

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
2 runs  ±0  2 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 08d41c2. ± Comparison against base commit df936ec.

@Flyingmana Flyingmana changed the title Improve Developer Mode make Developer Mode controllable by environment variable for all execution paths Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
htaccess Mage.php Relates to app/Mage.php
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants