Changes

Jump to: navigation, search

Gitolite

409 bytes added, 16:31, 26 June 2013
Port 1337
== Deploy ==
* There is a git hook to publish most of the application in prodproduction.* The deploy hook is located at <code>/home/git/hooks/deploy.sh</code> in the [[Internal_Server]].
* You must add a <code>post-receive</code> hook in your project in a file <code>/home/git/repositories/yourproject/hooks/post-receive</code> with the following content:
DIR=/where/your/project/should/be/deployed #example: /var/www/foo/htdocs
APP=user-to-chown-to #example: www-data
/home/git/hooks/deploy.sh $APP $DIR
* It's also a good thing to have a check of the database when you launch the application, and automatically create it if it doesn't yet exist.
 
== How to use git ? ==
If you come from svn, forget all that you have learnt, and start from scratch. A good start would be to do the http://git-scm.com/ tutorial.
You could then continue with reading the git manpages, they are pretty well written.
== See also ==
* [[Git_talk]]
445
edits