Skip to content

Instantly share code, notes, and snippets.

@mmoreram
Last active January 4, 2016 09:19
Show Gist options
  • Save mmoreram/8601752 to your computer and use it in GitHub Desktop.
Save mmoreram/8601752 to your computer and use it in GitHub Desktop.
FSI ( Fast Symfony2 Installation )
#!/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