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
<?php echo phpinfo(); ?> |
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
mkdir -p /opt/hudson/{logs,tmp,war} | |
cd /opt/hudson | |
chmod 777 {logs,tmp} | |
wget http://hudson-ci.org/latest/hudson.war |
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
PIDFILE=/opt/hudson/cc.pid | |
HUDSON_HOME=/opt/hudson/ | |
COMMAND=/usr/bin/java | |
ARGUMENTS="-Djava.io.tmpdir=/opt/hudson/tmp -jar /opt/hudson/hudson.war --webroot=/opt/hudson/war --httpPort=8082" ajp13ListenAddress=127.0.0.1" | |
RUN_AS=hudson-ci | |
NAME=Hudson-CI | |
start() { | |
ebegin "Starting $NAME" | |
export HUDSON_HOME=/opt/hudson |
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
cd /opt/hudson/jobs | |
git clone git://github.com/sebastianbergmann/php-hudson-template.git |
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
BarfooArticle: | |
actAs: | |
Sluggable: ~ | |
columns: | |
title: string(64) | |
text: string(512) | |
topImage: string(64) | |
centerImage: string(64) |
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
php symfony doctrine:build --all --and-load --no-confirmation | |
php symfony doctrine:generate-admin --quiet backend BarfooArticle |
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
<?php | |
/** | |
* BarfooArticle form. | |
* | |
* @package integration | |
* @subpackage form | |
* @author caefer <[email protected]> | |
* @version SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ | |
*/ |
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
sf_image: | |
class: sfImageTransformRoute | |
url: /thumbnails/:type/:attribute/:format/:slug-:id.:sf_format | |
param: { module: sfImageTransformator, action: index } | |
requirements: | |
format: '[\w_-]+' | |
attribute: 'topImage|centerImage' | |
slug: '[\w_-]+' | |
id: '\d+(?:,\d+)?' | |
sf_format: 'gif|png|jpg' |
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
class BarfooArticleForm extends BaseBarfooArticleForm | |
{ | |
public function configure() | |
{ | |
$file_src = sfContext::getInstance()->getController()->genUrl(array( | |
'sf_route' => 'sf_image', | |
'format' => 'backend_edit', | |
'type' => 'BarfooArticle', | |
'attribute' => 'topImage', | |
'slug' => $this->getObject()->slug, |
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
sf_image_barfooarticle_top: | |
class: sfImageTransformRoute | |
url: /thumbnails/:format/:slug-top-:id.:sf_format | |
param: { module: sfImageTransformator, action: index, type: BarfooArticle, attribute: topImage } | |
requirements: | |
format: '[\w_-]+' | |
slug: '[\w_-]+' | |
id: '\d+(?:,\d+)?' | |
sf_format: 'gif|png|jpg' | |
sf_method: [ get ] |
OlderNewer