I have a codeigniter application that is fully covered by git and i have it hosted on a shared hosting of hostgator. I have the limited shell access in hostgator and hence i updated the files by pulling from the git to the server directly. So far so good because i was just having it on a test directory.
Now i wanna move it to production. So the app must reside in http://www.domain.com hence the files must be in public_html. But when i clone from git into the public_html it comes along with a directory called production as the root, since thats the name of the repo. So in codeigniter config i have to set domain.com/production/ as my base_url which will have all urls with production and i dont want this to happen. So how do i point all default request to the production directory, but without having that extra segment in the url.
Is this something that i have to do in the .htaccess file or the codeigniter routes. or is there someother better way of doing this.
UPDATE
I already have some files in the public_html directory and i cannot lost them, so having a "." in the clone wont work. Any other ideas how i can do it.