howto create two git repo (dev and production) at one vps -


sorry english.

i have: vps, installed git, web application hosted @ following path: /var/www/%username%/data/ structure of application:

/app/ /www/ --/site.com/ --/dev.site.com/ 

task: make test server (dev.site.com) , productions server (site.com), test repo coding, , pushing in production repo, using git.

problem: not understand how , store 2 local repository. test repo must displayed on dev.site.com, work in it, , push in production repo, displayed on site.com

i think need have 2 copies of folder /app/ each of repositories, , 2 public folders /site.com/ , /dev.site.com/ same each of repositories, this:

/app/dev/ or /app-dev/ /app/prod/ or /app-prod/ /www/site.com/ /www/dev.site.com/ 

question: how , initialize each of repositories such structure, , how add each of them fitting directory?

you can try , follow tutorial : http://billpatrianakos.me/blog/2012/11/20/do-yourself-a-favor-set-up-a-staging-server/

it's put together.


Comments