I'm a beginner in DVCS (I'm from SVN world) and now that I mastered my own local repo, I would like to set up a remote computer (Amazon EC2) to hold my Web files so I can easily update the web application without FTP or some sorta things
I would like to end up using:
hg push http://hg.domain.com/webserver/hello
or git
git push myAmazon master
What do I have to configure in my remote server (installing Hg/Git) make a folder a repo using init
and what should be next?
Maybe I wasn't 100% clear with the answer above, so here is a simple question
I want to replace FTP Upload by using Git / Hg
push
, how can I accomplish this?
So, let's imagine this scenario:
C:\Inetpub\wwwroot\mybrandNewWebApp
is the root of a Site hosted in IIS (this is a remote computer, example: in Amazon EC2), at this directory I started up a repository using git init
/ hg init
.
How can I configure this repository that from my own laptop I can do a push remote
to "Uploading my changes"?
How can I configure this repository to be Reachable and Pushable?
Question from reading all comments?
Should I create other directory to be the repo and using upon a good push I could run a script that would actually update the website root directory?