newbie - production vs development |
I'm having issues with running codeigniter in development mode.
I have changed the env file to development mode #-------------------------------------------------------------------- # ENVIRONMENT #-------------------------------------------------------------------- CI_ENVIRONMENT = development I then run the spark test server: michael@michael-Aspire-F5-572:~/Programming/Codeigniter/framework-4.3.6/codeigniter4.3.6$ ./spark serve CodeIgniter v4.3.6 Command Line Tool - Server Time: 2023-07-10 06:07:34 UTC+00:00 CodeIgniter development server started on http://localhost:8080 Press Control-C to stop. [Mon Jul 10 16:07:34 2023] Failed to listen on localhost:8080 (reason: Address already in use) CodeIgniter development server started on http://localhost:8081 Press Control-C to stop. [Mon Jul 10 16:07:35 2023] PHP 7.4.3-4ubuntu2.19 Development Server (http://localhost:8081) started However when i go to http://localhost:8081 in my browser, it indicates it is in production mode?? What else do I need to check? thanks m
How did you know it was in production mode?
(07-10-2023, 04:20 AM)biker64 Wrote: At the risk of asking the obvious, did you rename the env file to .env ? That was an early issue but now corrected. And if I remove one of the { as described in the tutorial, I do get the parse error displayed. The only thing I am missing now is the Codeigniter flame at the bottom right of the introduction page. Not sure what I have missed here or how to get it to display. I am using Codeigniter 4.3.6 thanks mike
Have you set the baseURL correctly for the debug bar to display correctly in your instance it should be http://localhost:8081
See https://codeigniter.com/user_guide/testi...ug-toolbar
In the link you sent, it says:
The Debug Toolbar is not displayed when your baseURL setting (in app/Config/App.php or app.baseURL in .env) does not match your actual URL. Setting the baseURL setting to http://localhost:8081 resulted in the debug toolbar being displayed. Issue is now solved. Many thanks to everyone. Mike |
Welcome Guest, Not a member yet? Register Sign In |