<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<php echo $sf_user->getCulture() ?>"↵
lang="<php echo $sf_user->getCulture() ?>">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $sf_user->getCulture() ?>"↵
lang="<?php echo $sf_user->getCulture() ?>">
<VirtualHost *:80>
...
<Directory "/monprojet/web">
Options FollowSymLinks ExecCGI
AllowOverride None
Allow from All
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
Alias /sf /var/www/common/symfony-1.2/data/web/sf
<Directory "/var/www/common/symfony-1.2/data/web/sf">
AllowOverride None
Allow from All
</Directory>
...
</VirtualHost>
<Directory ~ '*\.svn'>
Order Allow,Deny
Deny from All
</Directory>
With incremental transfer, only the modified data will be sent. If a file didn't change, it won't be sent to the host. If a file changed only partially, just the differential will be sent. The major advantage is that rsync synchronizations transfer only a small amount of data and are very fast.
php symfony h project :deploy - 'Delete "/backend.php/" from your uri'
- "Personnaly" should be "Personally"
- 'Optimize Apache: avoid .htaccess'
- "dealed" in first paragraph isn't a word - not sure what it should be.
- "can't be cached apache" should be "can't be cached by apache"
- "the server has to scann the" should be "the server has to scan the"
- "If you moving the .htaccess rules to your virtual host configuration file, the rules will be put in cache and apache performances will be improved." should be
"If you move the .htaccess rules to your virtual host configuration file, the rules will be cached and apache performance will improve."
- "apache configuration files on virtual host environments" should be "apache configuration files on shared hosts"
- Hmm, not sure about this: "Most often, you'll find the virtual host configurations in the bottom of the httpd.conf, but sometimes, they are moved in some vhosts.conf file."
Apache 2 places vhosts in a sites-available directory inside /etc/apache2
- "Unless If you added extra rules in it, the file is now useless." should be "Unless you added extra rules in it, the file is now useless."
- "but it could be on your configuration." - not sure what this means, does it mean that it could be in your executable "path"?
- "Your project really should have at least a README file where this kind to modifications are reported."
should be
"Your project really should have at least one README file where these kinds of modifications are reported."
- the final 2 paragraphs have pretty sloppy englishProduction database must be protected
You really should add theses files to rsync_exclude.txt :
/config/databases.yml
/data/sql/schema.sql
Ninj wrote: I may have got it wrong, but when a file contains server-specific data, it should not be versionned. This could cause an svn-update on the server to erase connection parameter for example.
That makes me think that it's a good practice to completely separate and isolate server-specific data from the shared information.
Typically, databases.yml holds both server-specific parameters and project-wide data, which leads to this situation where a file that cannot be versionned needs to be updated by hand in case of strucutral changes.
svn update
./symfony project:clear-controllers
./symfony ccUsers browsing this forum: No registered users and 1 guest