Skip to content

Instantly share code, notes, and snippets.

@jaytaph
Created January 20, 2014 17:56
Show Gist options
  • Save jaytaph/8525290 to your computer and use it in GitHub Desktop.
Save jaytaph/8525290 to your computer and use it in GitHub Desktop.
Simple script that automatically creates and initializes a correct sf2 project for me.
#!/bin/sh
php composer.phar create-project symfony/framework-standard-edition $1
cd $1
ln -s web public
sed -i public/app_dev.php -e '/header/s|^|//|' -e '/exit/s|^|//|'
sudo setfacl -R -m u:www-data:rwX -m u:jthijssen:rwX app/cache app/logs
sudo setfacl -dR -m u:www-data:rwX -m u:jthijssen:rwX app/cache app/logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment