Skip to content

Instantly share code, notes, and snippets.

@RobertCalise
Forked from kenjis/install-fuelphp.sh
Last active January 2, 2016 15:09
Show Gist options
  • Save RobertCalise/8321819 to your computer and use it in GitHub Desktop.
Save RobertCalise/8321819 to your computer and use it in GitHub Desktop.
#!/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