Welcome Guest, Not a member yet? Register   Sign In
Application for Dev and Productuion Environments
#1

[eluser]xtremer360[/eluser]
I think I have this almost figured out. I'm going to be using GIT and my live file structure and I'm trying to figure out how I should be doing this. My question is I'll be having a branch for the development(dev) and one for the production site(public_html). Should they be having a same index.php file because of how the index.php file is for CI there's if statements that handle what environment you are currently in. I was curious because of the if statements that can be performed based on the environment. Is this a proper set up or should I be doing something different. I will also being using GIT with branches for dev and production.

I was told this before:

Quote:Yes, you can have one index.php file and let it decide how to set the constant for each environment. More important is your database.php file.

My current idea for setup:
Code:
/root
    /application
    /dev
        /site1
            /assets
            index.php
    /public_html
        /assets
        index.php
    /system



Messages In This Thread
Application for Dev and Productuion Environments - by El Forum - 04-27-2013, 02:29 PM
Application for Dev and Productuion Environments - by El Forum - 04-27-2013, 11:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB