![]() |
|
Snippets |
|
If you have not a PEAR symfony installation, but rather a couple of symlinks in the lib/ and data/ directories of your project, and if you didn't define shortcuts for the symfony command, you'll have to call manually pake (the tool used for the command line interface) and pass it the right pakefile (the configuration file containing the symfony commands).
This can be done that way:
$ cd /home/production/myproject
$ php /path/to/pake.php -f data/symfony/bin/pakefile.php propel-build-model
In systems where both PHP4 and PHP5 are installed, you probably need to use a PHP5 specific command:
$ php5 /usr/local/php5.1.2/lib/php/pake.php -f data/symfony/bin/pakefile.php propel-build-model
Comments on this snippet
Also, if you are running any unix/linux distribution, you can emulate the symfony command by creating an executable script in your project directory with the following contents:
#!/bin/sh php lib/pake/bin/pake.php -f data/symfony/bin/pakefile.php $@