Il giorno domenica 25 maggio 2014 16:05:56 UTC+2, ha 
> Hi,
> I'm starting to use git. I need it to manage a website.
> Up to now, on my server (linux, debian based) I configured a bare 
> repository (/opt/git/project.git/).
> I added a post-update hook, in order to checkout automatically to 
> /var/www/website.ext/public_html/ and all it works fine.
> Now I would like to improve developing process.
> I would like to have some environments (and related virtual host), 
> "developing", "testing" and "production" and manage properly all deployment 
> on each environemnt based on needed.
> I mean, I would like to create a file, for e.g. index.php, the first step 
> will be to push on developing environment (accessible through a 
> virtualhost: /var/www/ then when it's ready 
> move it on testing environment (accessible through a 
> virtualhost: var/www/ and at the end of 
> the process deploy on production (/var/www/website.ext/public_html/). Each 
> environment should be managed with git.
> But my question is, which is the best approach? Have I to create 3 
> different repositories (one for each environment with hook set)? Or can I 
> manage this with a single repository?
> I'm looking in the net with google, but up to now I'm not found anything 
> about this scenario, or maybe I'm searching with wrong keyword, I don't 
> know.
> Please, may you help me?
> Many thanks

I found an answer to my question.. one repo and two branches and 
post-update hook to deploy on each virtual host.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to