I am trying to understand the best way of doing things using several environments, such as development, testing, production for my application using codeigniter.
Now I have one folder for my application. I can see the places that are mentioned in the configuration file, making a folder for each of the environments and placing, for example, a copy of the database file in each of the folders in the environment.
Is this the best way to handle multiple environments? The reason I ask is because if I work on my dev subdomain, I still have to re-upload all the same files to the main root folder. Is this the best workflow?
So basically I have two sites.
dev.siteurl.com siteurl.com
I am trying to find a better way to handle this. Because I am wondering if I just need to upload all the files to the main level again so that it can process the production server or is there an easier way.
source
share