Choosing the right mobile website solution
Unless you've been living under a rock in Tasmania you can't have missed the fact that in recent years the internet has left our computer screens and our darkened spare rooms and now follows us wherev...
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 username@domain.com
mkdir ~/git/myrepos.git
*It is recommended to create the bare Git repository outside of the public folder so only the server can access it.
cd ~/git/myrepos.git
Create the bare git repository.
git init --bare
nano hooks/post-receive
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 user@domain.com:~/git/myrepos.git
Unless you've been living under a rock in Tasmania you can't have missed the fact that in recent years the internet has left our computer screens and our darkened spare rooms and now follows us wherev...
We came across Bonfire while looking for an authentication library for CodeIgniter to help us kick start a web application we're about to start. Bonfire is a framework built on top of CodeIgniter. It'...
A fun little project built using HTML5 Canvas that was originally developed as an interactive background for a website. Move your mouse in the area below to see the cool effect....