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
curl -s http://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
rm -r vendor | |
rm -r bin | |
composer install |
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
PROJ_DIR=/var/www/yourproj | |
wget http://symfony.com/download?v=Symfony_Standard_Vendors_2.1.0-BETA1.zip -O symfony.zip | |
unzip symfony.zip | |
cd Symfony | |
mv composer* $PROJ_DIR | |
cd $PROJ_DIR | |
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
# Majority of the work: | |
# 1) first get a composer.json to work off of: | |
PROJ_DIR=/var/www/yourproj | |
wget http://symfony.com/download?v=Symfony_Standard_Vendors_2.1.0-BETA1.zip -O symfony.zip | |
unzip symfony.zip | |
cd Symfony | |
mv composer* $PROJ_DIR | |
cd $PROJ_DIR |
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
<? | |
class TracTicketsToPdfTask extends sfBaseTask { | |
/** | |
* @see sfTask | |
*/ | |
protected function configure() { | |
$this->addOptions(array( | |
new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'public'), | |
new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), | |
new sfCommandOption('filename', null, sfCommandOption::PARAMETER_REQUIRED, 'Filename containing the trac csv report', 'query.csv'), |
NewerOlder