-
-
Save RobertCalise/7408593 to your computer and use it in GitHub Desktop.
Download/install FuelPHP from GitHub into a local repo, create new dotCloud application, and push the application live in a single command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# FuelPHP Install Script | |
# | |
# @author Kenji Suzuki https://github.com/kenjis | |
# @copyright 2011 Kenji Suzuki | |
# @license MIT License http://www.opensource.org/licenses/mit-license.php | |
if [ $# -lt 2 ]; then | |
echo "Install FuelPHP and Create Application Repository" | |
echo " usage: $0 branch folder" | |
echo " eg: $0 1.1/develop todo" | |
exit; | |
fi | |
branch="$1" | |
dir="$2" | |
git clone -b "$branch" --recursive git://github.com/fuel/fuel.git "$dir" | |
cd "$dir" | |
rm -rf .git .gitmodules *.md docs fuel/core/ fuel/packages/* | |
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" | |
git add . | |
git commit -m "FuelPHP $branch Initial Commit" | |
php composer.phar self-update | |
php composer.phar update | |
php oil refine install | |
echo "try_files \$uri \$uri/ /index.php;" > ./nginx.conf | |
cat > ./dotcloud.yml <<DELIM | |
www: | |
type: php | |
approot: public/ | |
data: | |
type: mysql | |
DELIM | |
dotcloud create "$dir" | |
dotcloud push "$dir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment