Last active
January 4, 2016 09:19
-
-
Save mmoreram/8601752 to your computer and use it in GitHub Desktop.
FSI ( Fast Symfony2 Installation )
This file contains 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/bash | |
# git clone https://gist.github.com/8601752.git fsi && sh fsi/fsi.sh | |
folder=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
clear | |
cd /tmp/ | |
echo "Installing project in i/tmp/$folder. This process can take depending on your connection, up to 2 minutes" | |
git clone https://github.com/symfony/symfony-standard.git $folder | |
cd $folder | |
cp app/config/parameters.yml.dist app/config/parameters.yml | |
echo 'Downloading and installing composer' | |
curl -sS https://getcomposer.org/installer | php | |
php composer.phar update | |
echo 'Initializing server instance in http://localhost:8000/app_dev.php/demo' | |
echo 'To shutdown server, please ctrl+c' | |
php app/console server:run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment