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

Bug: ENVIRONMENT is not updated when changed via .ENV ( 4.5.3) #9029

Closed
ampmonteiro opened this issue Jul 7, 2024 · 5 comments
Closed

Bug: ENVIRONMENT is not updated when changed via .ENV ( 4.5.3) #9029

ampmonteiro opened this issue Jul 7, 2024 · 5 comments

Comments

@ampmonteiro
Copy link

ampmonteiro commented Jul 7, 2024

PHP Version

8.3

CodeIgniter4 Version

4.5.3

CodeIgniter4 Installation Method

Composer (using codeigniter4/appstarter)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Database

What happened?

Following the Docs to change the .env file to change CI_ENVIRONMENT to development and app.baseURL = 'http://localhost/' when refresh de browser it is still in production and even dev toolbar dont show.

Steps to Reproduce

i just followed the Docs, how to change the ENVIRONMENT to development and app.baseURL = 'http://localhost/' in .env

Also change in APP > Config >App,php the props indexPage to empty string.

Only works with this command the change is applied : php spark env development.

Expected Output

The same result as when execute the command php spark env development

image

Via terminal
image

however if change via .env -> CI_ENVIRONMENT = development :

image

Anything else?

No response

@ampmonteiro ampmonteiro added the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 7, 2024
@kenjis kenjis removed the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 7, 2024
@kenjis
Copy link
Member

kenjis commented Jul 7, 2024

Cannot reproduce.

@kenjis
Copy link
Member

kenjis commented Jul 7, 2024

We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.

@kenjis kenjis closed this as completed Jul 7, 2024
@cijagani
Copy link
Contributor

cijagani commented Jul 8, 2024

Try to clear browser cache

@ampmonteiro
Copy link
Author

@cijagani
it nothing to do with browser cache, since, as already said, with command php spark env development and refreshing the page will show the correct ENV

@kenjis
sorry but make no sense close the issue even if you cannot reproduce it.
What you should be doing, in my opinion, is ask for more details.

So to reproduce this i used Docker with image configuration like this in my Gist, just change to PHP 8.3.

i update the docker image and even downgrad to 8.1 and same problem

@kenjis
Copy link
Member

kenjis commented Jul 14, 2024

We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.

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

No branches or pull requests

3 participants