Skip to content

Instantly share code, notes, and snippets.

@cmckni3
Last active October 4, 2015 06:08
Show Gist options
  • Save cmckni3/2590785 to your computer and use it in GitHub Desktop.
Save cmckni3/2590785 to your computer and use it in GitHub Desktop.
symfony propel setup for Mac OS X
# 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