Tag Archives: deploy

Auto deploy from BitBucket repository via Cron

Setup the environment

Create the environment for Apache

Create ssh key in /home/deployment/.ssh/id_rsa

Create wrapper for git to auth via SSH keys

Run the fist clone

Test the Re-Base

Make sure to get into the folder with .git subfolder
(in this case we did the clone into /var/www/vhosts/ BUT the code is stored into a new subfolder pulled with the domain name. So we cd into that one)

Install the CRON