Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter CIBonfire how to change mode from development to production?

I'm creating my first app using CIBonfire and i'm ready to push it to production, but i'm not sure how to change the mode from development to production so that it does not show the profiler stuff in the footer.

I was not able to find it in any of the settings menus or in the documentation. Any help is appreciated.

like image 686
Catfish Avatar asked Dec 15 '22 09:12

Catfish


1 Answers

In your index.php file in your CI-Bonfire. you can find this spot here, just change the define('ENVIRONMENT', 'development') into define('ENVIRONMENT', 'production')

 * You can load different configurations depending on your
 * current environment. Setting the environment also influences
 * things like logging and error reporting.
 *
 * This can be set to anything, but default usage is:
 *
 *     development
 *     testing
 *     production
 *
 * NOTE: If you change these, also change the error_reporting() code below
 *
 */
    define('ENVIRONMENT', 'production');
like image 88
Þaw Avatar answered Apr 05 '23 22:04

Þaw