Last active
October 4, 2015 06:08
-
-
Save cmckni3/2590785 to your computer and use it in GitHub Desktop.
symfony propel setup for Mac OS X
This file contains hidden or 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
# this script sets up a new symfony 1.4.x installation and installs the propel ORM plugin on Mac OS X | |
#!/bin/bash | |
if [ $# == 0 ]; then | |
echo "Usage: $0 projectname" | |
exit 1 | |
fi | |
mkdir $1 && cd $1 | |
mkdir -p lib/vendor | |
git init | |
# Add symfony as submodule | |
git submodule add git://github.com/symfony/symfony1.git lib/vendor/symfony | |
php lib/vendor/symfony/data/bin/symfony generate:project $1 --orm=Propel | |
# Add propel as submodule | |
git submodule add git://github.com/propelorm/sfPropelORMPlugin plugins/sfPropelORMPlugin | |
git submodule update --init --recursive | |
cp plugins/sfPropelORMPlugin/config/skeleton/config/propel.ini config/propel.ini | |
cp config/databases.yml config/database.yml.tmpl | |
./symfony generate:app frontend | |
./symfony plugin:publish-assets | |
./symfony project:permissions | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment