Created
September 15, 2011 00:06
-
-
Save Problematic/1218175 to your computer and use it in GitHub Desktop.
Symfony2 deployment script
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 | |
php bin/vendors install | |
php app/console doctrine:database:create | |
php app/console doctrine:schema:create | |
echo -n "Initialize ACLs (y/n)? " | |
read initACL | |
[ "$initACL" == "y" ] && php app/console init:acl | |
echo -n "Database storage for sessions (y/n)? " | |
read dbSess | |
[ "$dbSess" == "y" ] && php app/console doctrine:query:sql "CREATE TABLE \`session\` (\`session_id\` varchar(255) NOT NULL,\`session_value\` text NOT NULL,\`session_time\` int(11) NOT NULL,PRIMARY KEY (\`session_id\`),UNIQUE KEY \`session_id_idx\` (\`session_id\`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;" | |
echo -n "Using FOS bundles (y/n)? " | |
read useFOS | |
if [ "$useFOS" == "y" ]; then | |
echo -n "Configure super-admin user for FOSUserBundle (y/n)? " | |
read FOSUserAdmin | |
[ $FOSUserAdmin == "y" ] && php app/console fos:user:create --super-admin | |
if [ "$initAcl" == "y" ]; then | |
echo -n "Install ACLs for FOSCommentBundle (y/n)? " | |
read FOSCommentACL | |
[ "$FOSCommentACL" == "y" ] && php app/console fos:comment:installAces | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment