Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (20 sloc) 395 Bytes
#!/bin/bash
dir="/var/www/mindcloud/prd/" # base directory
#git options
branch="master"
# grunt build options
grunt_dir="web/grunt" # relative to base directory
build_options="prd"
cd $dir
echo "Updating $branch"
git checkout $branch
git pull
echo "Launching grunt build"
cd $grunt_dir
grunt build $build_options
exit
git checkout $branch
git pull
cd $grunt_dir
grunt $build_options
exit