Late last year we decided Mr Pony needed to rebrand to reflect who we are and the direction we are taking. We are still working on the new website (www.mrpony.com.au) so be prepared to be blown away....
Here is a quick guide on deploying a website or web app to your production server using Git. If you would like to use something more flexible then check out Capistrano
ssh -p port_number firstname.lastname@example.org
*It is recommended to create the bare Git repository outside of the public folder so only the server can access it.
Create the bare git repository.
git init --bare
Type in the below commands.
#!/bin/sh GIT_WORK_TREE=/path/to/public/folder git checkout -f
You can also add other commands such as Composer to install dependencies
cd /path/to/public/folder php composer.phar update --no-dev
Save "crt+o" and Exit "crt+x".
Set the permissions
$ chmod +x hooks/post-receive
git push email@example.com:~/git/myrepos.git