php - File structure for dev server and repo -
I have a development server at dev.mysite.com and I work to work with Cod and GIT repo There is a developing branch that points to my dev domains.
As of now the file structure is just as anyone looking at anything that should change me to reconsider. I am asking this because there is a public_html or what's inside the dev folder with this setup. Currently when I load dev.mysite.com this index shows / which shows .gitignore, .git, and public_html.
../ / dev /mysite.com .git .gitignore / application / public_html / property index.php / system /mysecondsite.com / application / public_html / assets /index.php / system / Sites /mysecondsite.com / application / system index.php Does anyone have any ideas?
If you want a development environment and a production environment. While the main files for CI outside the public AHMT, you have to redefine your document root; I believe that you are using the server coming with cPanel as the means of administration for your server.
By saying this, you can go to your CPNL and where you have set your dev subdomain, you should be able to edit the document root folder. That's why you will add a public_html to your dev folder on the server like I have gathered from the example you already have and with your current folder settings you add / public_html to the string which is now the folder path . Once you do this, then allow it to be employed for one minute or two, move the server and your folders around CPNL, as you see fit.
From there, you root index Find PHP and open up, find references to your application folder and your system folder and change the paths to match. They should now look for the possibility of using relative paths i.e.: ../../ applications for example . Save your index.php assuming that you have corrected your copy of CII correctly, as it should be loaded properly, when you did not leave everything in folders like you want
Comments
Post a Comment