-
-
Save RobertCalise/8321819 to your computer and use it in GitHub Desktop.
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 | |
# Laravel Install Script | |
# Based on the FuelPHP Install Script by Kenji Suzuki | |
# https://gist.github.com/kenjis/1479807 | |
# | |
# @author Robert Calise http://github.com/RobertCalise | |
# @copyright 2014 Robert Calise | |
# @license MIT License http://www.opensource.org/licenses/mit-license.php | |
if [ $# -lt 1 ]; then | |
echo "Install Laravel and Create Application Repository" | |
echo " usage: $0 folder" | |
echo " eg: $0 todo" | |
exit; | |
fi | |
dir="$1" | |
mkdir "$dir" | |
cd "$dir" | |
wget https://github.com/laravel/laravel/archive/master.zip | |
unzip master.zip | |
mv laravel-master/* . | |
rm -rf laravel-master master.zip | |
composer install | |
echo "try_files \$uri \$uri/ /index.php;" > ./public/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