Changes
Gitolite
,/* Deploy */
* 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=/wherepath/yourto/project/should/be/deployed #example: /var/www/foo/htdocs
APP=user-to-chown-to #example: www-data
/home/git/hooks/deploy.sh $APP $DIR
* Permissions fix for the hooks and repo
chmod +x /home/git/repositories/yourproject/hooks/post-receive
chown -R gitolite:$APP /wherepath/yourto/project find -type f -exec chmod 640 /shouldpath/beto/deployedproject \; chmod find -R type d -exec chmod 750 /wherepath/yourto/project/should/be/deployed\;
* 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.