Skip to content

Instantly share code, notes, and snippets.

@gherkins
Created September 11, 2011 12:07
Show Gist options
  • 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 [email protected]:silverstripe/silverstripe-installer.git $1
cd $1
git checkout $2
#setup cms
git clone [email protected]:silverstripe/silverstripe-cms.git cms
cd cms
git checkout $2
cd ..
#setup framework
git clone [email protected]: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 [email protected]:silverstripe-themes/silverstripe-blackcandy.git themes
cd themes
git checkout $2
cd ..
mv tutorial themes
# install common modules
git clone [email protected]:unclecheese/Uploadify.git uploadify
git clone [email protected]:/unclecheese/DataObjectManager.git dataobject_manager
git clone [email protected]:/silverstripe/silverstripe-userforms.git userforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment