deployment - minor changes in web apps
I am using svn and giving a try with mercurial. I have a web-app of about 1K files. Consider these scenarios.
- I've deployed the web-app in server as chekout
- I've deployed the web-app in server as an开发者_JAVA百科 export
Now I change a single line in one of the web pages in the deployed branch locally. Now I want the change to be updated on the deployed code (on server). If I want to transfer only the changed file to be transmitted to the server from local, what is the best possible way.
Think both checkout and export will transfer whole web-app to the server. Please correct me If I'm wrong.
Mercural checkout
is an alias for update
it doesn't move anything at all. The commands that move things to your server are push
and pull
which move very space efficient binary representations of only what changed. After pushing the changes to your server you'll need to hg update
on the server, to make the working directory reflect the new repository changes, and that too alters only what changed.
The hg export
command would be inappropriate here. The hg archive
command exports full snapshot archives, and moving those would mean moving everything.
精彩评论