Welcome Guest, Not a member yet? Register   Sign In
Code Igniter setup in production
#3

* rename your application and system folders and put them a level above the public index.php file. you can do any naming that makes sense but its nice to have the version number in the system folder name so its immediately obvious which CI system it is. and its nice to have a date on your application folder. 

so in your index page you will have something like 
$application_folder = '../jellybellyapp_sept152015_beta';
$system_folder = '../system301';

so lets say CI comes out with system 3.05 and you want to upgrade. name the folder system305, upload it, change your index file link and preview. this way if there is some issue or bug - system301 is right there and ready and you can immediately switch back. same idea with your application folder, you can upload different versions of your application and instantly switch between them just by changing the link on the index page. that way if you move to a newer version of your app, and discover some horrible bug, you can revert just by changing the link. much. less. stressful. 

* do not specify your base_url in the application/config.php file. put your base_url config on your index page. this will save you SO much time if you have separate development and live versions.
$assign_to_config['base_url'] = 'https://jellybellyforever.com';

versus say the index page on your development version if working locally etc 
$assign_to_config['base_url'] = 'http://localhost';

* have a folder called assets or similar that holds external files on the "public" level. that is for your css files, js, etc. 
Reply


Messages In This Thread
Code Igniter setup in production - by estebanc - 10-02-2015, 09:58 AM
RE: Code Igniter setup in production - by cartalot - 10-02-2015, 05:42 PM
RE: Code Igniter setup in production - by kankuro - 10-02-2015, 06:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB