symfony, svn
Sunday, 22. February 2009, 08:20:44
mkdir /home/cpr/Programming/PHP/symfony/myproject
cd ESC .
symfony generate:project myproject #uses system-wide symfony installation
rm -rf cache/* log/*
superuserbutnotroot@remote:
svnadmin create /var/svn/myproject
sudo chown myuser:users -R /var/svn/myproject
me@localhost:
svn mkdir -m "initial structure" svn+ssh://myuser@example.com/var/svn/myproject/trunk svn+ssh://myuser@example.com/var/svn/myproject/tags svn+ssh://myuser@example.com/var/svn/myproject/branches
rm -rf cache/* log/*
svn import -m "initial import" svn+ssh://myuser@example.com/var/svn/myproject/trunk
svn co svn+ssh://myuser@example.com/var/svn/myproject/trunk mediaservice
svn propedit svn:ignore cache/ # put *
svn propedit svn:ignore log/ # put *
mkdir lib/vendor
svn add lib/vendor
svn propedit svn:externals lib/vendor # put symfony http://svn.symfony-project.com/branches/1.2
svn commit
svn update
root@localhost:
vi /etc/lighttpd/vhosts.d/myproject.conf
#$HTTP["host"] =~ "dev.myproject.local" {
#server.document-root = "/home/me/Programming/PHP/symfony/myproject/trunk/web"
#alias.url = ( "/sf/" => "/user/share/php5/PEAR/data/symfony/web/sf/" )
#url.rewrite-once = (
# "^/(.*\..+(?!html))$" => "$0",
# "^/(.*)\.(.*)" => "$0",
# "^/([^.]+)$" => "/index.php/$1",
# "^/$" => "/index.php"
#)
#}
vi /etc/hosts
#127.0.0.1 localhost dev.myproject.local
#edit Opera Extras Einstellungen Erweitert Netzwerk Proxyserver "Keinen Proxyserver für folgende Adressen verwenden:" *local
symfony generate:app --escaping-strategy=on --csrf-secret=UniqueSecret frontend
#// config/ProjectConfiguration.class.php
#require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
config/properties.ini:
[symfony] name=myproject author=Chr Prior <joe at example.com
./symfony generate:module frontend default #edit action.class.php and remove $this->forward() to disable the symfony default startpage
svn propedit svn:externals plugins
1 sfDoctrineGuardPlugin http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/branches/1.2
2 ysfDimensionsPlugin http://svn.symfony-project.com/plugins/ysfDimensionsPlugin/branches/1.2
symfony plugin:publish-assets


