Sample script for automating deployment from a Git repository to a Web server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.htaccess
LICENSE
README.md
deploy.php

README.md

git-deployment-workflow

Sample script for automating deployment from a Git repository to a Web server

mkdir distributors_prod # execute this from Shell chown -R apache:apache distributors_prod # execute this from Shell cd /mnt/data/vhosts/ccr3i.com/distributors_prod git clone git@bitbucket.org:martinsarsini/ccr3i.distributors.git ///// ignore any errors you get from this, check the dir :) git init . git remote add -t * -f origin git@bitbucket.org:martinsarsini/ccr3i.distributors.git git checkout master mkdir www/assets chmod www/assets 777 mkdir runtime chown -R apache:apache runtime