Skip to content

Instantly share code, notes, and snippets.

@gherkins
Created September 11, 2011 12:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gherkins/1209496 to your computer and use it in GitHub Desktop.
Save gherkins/1209496 to your computer and use it in GitHub Desktop.
install silverstripe + common modules from github
# install silverstripe + common modules from github
# usage sh install_silverstripe.sh <folder_name> <tag/branch>
# examples:
# sh install_silverstripe.sh some_folder tags/2.4.5
# sh install_silverstripe.sh some_folder master
#set up project base folder
git clone git@github.com:silverstripe/silverstripe-installer.git $1
cd $1
git checkout $2
#setup cms
git clone git@github.com:silverstripe/silverstripe-cms.git cms
cd cms
git checkout $2
cd ..
#setup framework
git clone git@github.com:silverstripe/sapphire.git sapphire
cd sapphire
git checkout $2
cd ..
#set permissions for install
chmod 0777 assets assets/*
chmod 0666 .htaccess mysite/_config.php assets/*/*
#install blackcandy theme
mv themes/tutorial ./
rm -rf themes
git clone git@github.com:silverstripe-themes/silverstripe-blackcandy.git themes
cd themes
git checkout $2
cd ..
mv tutorial themes
# install common modules
git clone git@github.com:unclecheese/Uploadify.git uploadify
git clone git@github.com:/unclecheese/DataObjectManager.git dataobject_manager
git clone git@github.com:/silverstripe/silverstripe-userforms.git userforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment