Skip to content

Instantly share code, notes, and snippets.

@notmii
Last active December 26, 2015 21:29
Show Gist options
  • Save notmii/7216174 to your computer and use it in GitHub Desktop.
Save notmii/7216174 to your computer and use it in GitHub Desktop.
FuelPHP Framework Installer
branch=$1
dir=$2
git clone -b $branch git://github.com/fuel/fuel.git $dir
cd "$dir"
rm -rf .git \
.gitmodules \
*.md \
docs \
composer.phar \
fuel/core \
fuel/packages/* \
fuel/LICENSE
git init
git submodule add git://github.com/fuel/core.git fuel/core/
git submodule add git://github.com/fuel/oil.git fuel/packages/oil
git submodule add git://github.com/fuel/parser.git fuel/packages/parser
git submodule add git://github.com/fuel/email.git fuel/packages/email
git submodule add git://github.com/fuel/auth.git fuel/packages/auth
git submodule add git://github.com/fuel/orm.git fuel/packages/orm
git submodule foreach git checkout $branch
git submodule foreach git pull origin $branch
composer install
git add .
git commit -m "FuelPHP $branch Initial Commit"
php oil refine install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment