This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Documentation » A todo list to check if your application is finished !
Re: A todo list to check if your application is finished ! [message #80577 is a reply to message #79445 ] Wed, 24 June 2009 16:28 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
@Ases Only power users use Xdebug. These ones should know that it shouldn't be installed on the production server.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81332 is a reply to message #79445 ] Wed, 08 July 2009 12:21 Go to previous messageGo to next message
benhaines  is currently offline benhaines
Messages: 62
Registered: August 2006
Location: London
Member
I suggest you add 'checklist' to the meta keywords. I'm no SEO expert, but searching google for 'symfony checklist' brings up my blog Sad

http://www.google.com/search?q=symfony+checklist&ie=utf- 8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&a mp;client=firefox-a

I posted a blog entry about this great idea a while back and it seems to have stuck. My logs also show me I'm getting 35+ hits a day from google using these search terms.
Re: A todo list to check if your application is finished ! [message #81333 is a reply to message #81332 ] Wed, 08 July 2009 13:13 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
Done.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81964 is a reply to message #79445 ] Thu, 16 July 2009 10:48 Go to previous messageGo to next message
gouiggou  is currently offline gouiggou
Messages: 44
Registered: October 2005
Location: Paris
Member
Just a little typo :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<php echo $sf_user->getCulture() ?>"↵
  lang="<php echo $sf_user->getCulture() ?>">


become :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $sf_user->getCulture() ?>"↵
  lang="<?php echo $sf_user->getCulture() ?>">


Jérôme M.
Re: A todo list to check if your application is finished ! [message #81966 is a reply to message #81964 ] Thu, 16 July 2009 10:56 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
It's fixed, thanks gouiggou


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81968 is a reply to message #79445 ] Thu, 16 July 2009 11:00 Go to previous messageGo to next message
gouiggou  is currently offline gouiggou
Messages: 44
Registered: October 2005
Location: Paris
Member
And a little optimisation for apache.

Avoid htaccess. Put it into virtual host configuration, and then tell apache to not read htaccess on each request !

<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>

[Updated on: Thu, 16 July 2009 11:10]


Jérôme M.
Re: A todo list to check if your application is finished ! [message #81970 is a reply to message #79445 ] Thu, 16 July 2009 11:23 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
The tip doesn't work on shared hosting environment, but it's definitively interesting on dedicated servers.

I'll test it and add it to the site with the "performance" tag.
As I'm very busy these days, it probably won't be before next week.

I may also add a small popup with the contributors list. Can I add your name to it, Jérôme Macias?

[Updated on: Thu, 16 July 2009 11:24]


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81988 is a reply to message #79445 ] Thu, 16 July 2009 14:47 Go to previous messageGo to next message
gouiggou  is currently offline gouiggou
Messages: 44
Registered: October 2005
Location: Paris
Member
Eric, you can add my name.


Jérôme M.
Re: A todo list to check if your application is finished ! [message #82180 is a reply to message #81988 ] Mon, 20 July 2009 14:52 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
I've added gouiggou's tip.

Optimize Apache: avoid .htaccess

As usual, typos and error reports are welcome.

[Updated on: Mon, 20 July 2009 15:02]


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #84683 is a reply to message #82180 ] Tue, 01 September 2009 17:50 Go to previous messageGo to next message
COil  is currently offline COil
Messages: 466
Registered: September 2006
Faithful Member

I don't know if it was said before, but it would be really great to have a cookie that remembers witch checkbox are checked... With an init button to uncheck all once you have finished the check list for one project.

Thanks for the site, very usefull and easy to use.


my Symfony Blog - http://www.strangebuzz.com
The symfony web debug bar as a standalone library : PEAR::PHP_Debug
Re: A todo list to check if your application is finished ! [message #86476 is a reply to message #79445 ] Sun, 11 October 2009 21:29 Go to previous messageGo to next message
SonicM  is currently offline SonicM
Messages: 12
Registered: December 2006
Location: Germany
Junior Member
In the askeet or the jobeet tutorial there is an introdution to svn. I don´t want to miss that feature, but it is important, that you delete the ".svn" folders, or at least deny the access.
With apache it is simple, you only have to put the following in the apache2.conf
<Directory ~  '*\.svn'>
Order Allow,Deny
Deny from All
</Directory>

The other possibility is to deploy the code with svn export, but this takes some time and I like "svn update" for fast debugging Smile

The files that are accessable from the web, such as the frontend.php are not that important, but I think you should remember the developer on your site.
Re: A todo list to check if your application is finished ! [message #86493 is a reply to message #86476 ] Mon, 12 October 2009 07:10 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
The symfony standard way to export a project to production is to use the "php symfony project:deploy" tool.

During deployment, the files listed in "myproject/config/rsync_exclude.txt" are ignored. As ".svn" is set by default in rsync_exclude.txt, the sf users just don't have to deal with this issue by default.

I'm not sure to understand well what you mean about "frontend.php", but files like "frontend_dev.php" shall not be available on the production server.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #86497 is a reply to message #86493 ] Mon, 12 October 2009 09:22 Go to previous messageGo to next message
SonicM  is currently offline SonicM
Messages: 12
Registered: December 2006
Location: Germany
Junior Member
Deployment is the first step. But in most cases you have to update the site, be it bugs or new wishes. In this case I use svn update and delete then the *_dev.php files. But the problem are the files in the subdirectory ".svn". You can see all the files in the directory and if the webserver deliver .svn-base compiled, you can see anything like that: http://www.gutefrage.net/.svn/text-base/error.php.svn-base but if not, the file is readable.

I don´t think that it is a very big security problem, but everyone has the possibility to see what your directory structure is and which files you use. By the way, if you use svn to deliver the updated files to the webserver (svn update) the *_dev.php needn´t to be there to be read. see this link http://www.gutefrage.net/.svn/text-base/frontend_dev.php.svn -base
In this case the file is executed, so that none could read the content, but in other cases you can read it.

Like I said, it is not such a big security problem, but it is worth to remark it.
How do other symfony users update their projects? I mean debugging or adding new wishes for the customer? With svn export?
Re: A todo list to check if your application is finished ! [message #86499 is a reply to message #86497 ] Mon, 12 October 2009 09:45 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
I insist, symfony deployment system uses Rsync, you could (should ?) use project:deploy not only for the initial commit, but also to deploy the modifications.

Here is a quote from the related sf documentation :

Quote:

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.


You can check all the deployment options in your terminal :

php symfony h project:deploy


Of course you can use subversion for your deployments.
Subversion is a great powerful tool, but as using it for deployments doesn't follow symfony practices, so I won't add your advice to symfony-check, sorry Smile


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #86889 is a reply to message #79445 ] Sat, 17 October 2009 23:45 Go to previous messageGo to next message
alecs  is currently offline alecs
Messages: 3
Registered: June 2009
Junior Member
maye it is, maybe is not the place where we could put a hit on how we can deploy the symfony project in a shared hosting. i guess the simple method is by creating a folder and upload in ityour sf project on your server (preferably not in public_html) andd then edit 3-4 files

in config/projectConfiguration... to add a like like $this->setWebdir('/path/to/your/public_html/'); in your configure method

edit the web/*.php and change the require path like
require dirname(__FILE__).'/../sf_project/(and the rest here, without ../ )';

I have gave the example assuming that i have /home/alecs/sf_project/ folder and the www folder is placed in /home/alecs/public_html/

I will come with a functional example tommorow
Re: A todo list to check if your application is finished ! [message #87346 is a reply to message #86889 ] Sun, 25 October 2009 13:35 Go to previous messageGo to next message
weaverryan  is currently offline weaverryan
Messages: 781
Registered: November 2007
Location: Nashville, TN
Faithful Member

Absolutely love the site - well done and well executed.

Going through it this morning in some details and found a few quick "typos".

  1. 'Customize the "Login Required" Page': About half-way down, there is a header that says "Display the error page to test it". I think that's just copied from the previous item - should be "Display the login page to test it". The next section. 'Customize the "Credentials Required" page' suffers from this same problem.
  2. Right below that, ordered list item #2, "preferencies" should be "preferences".
  3. 'Customize the "This Module is Unavailable" page' - First paragraph, "default/login" should be "default/disabled"

If I find any more, I'll post them. The site has been a great resource for us - glad to see everyone is pitching in.

Also, someone mentioned putting "checklist" in the meta tags. I thought you had put it in there, but I don't see it now. I'd throw "checklist" in both the meta tags and the title tag - when I google it, I get a blog about it.

Thanks!

[Updated on: Sun, 25 October 2009 13:40]


Ryan Weaver
http://www.sympalphp.org
http://www.thatsquality.com
@weaverryan
Re: A todo list to check if your application is finished ! [message #87350 is a reply to message #87346 ] Sun, 25 October 2009 14:58 Go to previous messageGo to next message
weaverryan  is currently offline weaverryan
Messages: 781
Registered: November 2007
Location: Nashville, TN
Faithful Member

Hey guys-

A few other tiny details:

 - '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 english


Thanks! As I said before, it's great, which is the only reason I care about the wording!


Ryan Weaver
http://www.sympalphp.org
http://www.thatsquality.com
@weaverryan
Re: A todo list to check if your application is finished ! [message #87360 is a reply to message #79445 ] Sun, 25 October 2009 17:44 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
Weaverryan, thanks you for your support on symfony-check, I've fixed the typos you kindly reported.

And thank you for thatsquality, your articles about symfony and the Amazon services are really great !


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #89251 is a reply to message #79445 ] Fri, 04 December 2009 03:30 Go to previous messageGo to next message
Ninj  is currently offline Ninj
Messages: 6
Registered: March 2008
Location: France
Junior Member
Hi, a big thanks for your sheet, which is already in my bookmarks Smile

This page of the symfony doc shows some tips in the frame named "Is your application finished?":

http://www.symfony-project.org/book/1_2/16-Application-Manag ement-Tools#chapter_16_sub_using_rsync_for_incremental_file_ transfer
(just check at the end of this 'Using rsync for..." sub-chapter)

Most of them are shown on your sheet, but i see for example the robots.txt being a really itneresting final touch to a website, and i did not find read anything about it on your sheet.


-= Ninj =-
Re: A todo list to check if your application is finished ! [message #89259 is a reply to message #89251 ] Fri, 04 December 2009 08:18 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
Thanks Ninj, I'll try to add it before the end of the year.

I also plan to update some tips for sf 1.3/1.4.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #91186 is a reply to message #79445 ] Mon, 11 January 2010 13:31 Go to previous messageGo to next message
j4cKiE  is currently offline j4cKiE
Messages: 16
Registered: October 2008
Junior Member
Great list, thanks for sharing!
Re: A todo list to check if your application is finished ! [message #91980 is a reply to message #79445 ] Thu, 21 January 2010 17:46 Go to previous messageGo to next message
forkmantis  is currently offline forkmantis
Messages: 37
Registered: November 2005
Location: Texas
Member
Your site is excellent. Thanks for sharing. I find it odd, though, that you do not have a favicon Smile



will killian
Re: A todo list to check if your application is finished ! [message #92764 is a reply to message #79445 ] Tue, 02 February 2010 17:36 Go to previous messageGo to next message
lacyrhoades  is currently offline lacyrhoades
Messages: 2
Registered: February 2010
Location: Nashville
Junior Member

for consideration:

http://groups.google.com/group/symfony-devs/browse_thread/th read/7ef9104bd36e834a

remove execution of server side code in the upload area
Re: A todo list to check if your application is finished ! [message #92766 is a reply to message #92764 ] Tue, 02 February 2010 17:48 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
Thanks lacyrhoades, I know, I'm Éric Rogé, I reported the vulnerability.

I plan to add a new todo point about it the sooner I can.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #92769 is a reply to message #79445 ] Tue, 02 February 2010 18:05 Go to previous messageGo to next message
j4cKiE  is currently offline j4cKiE
Messages: 16
Registered: October 2008
Junior Member
Great! Let us know, when the new point is released. Smile

Besides, I'd like to see even more ToDo-Points that improve my symfony projects. Embarassed
Re: A todo list to check if your application is finished ! [message #92770 is a reply to message #79445 ] Tue, 02 February 2010 18:13 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
I'll have more time for evolutions on Symfony check later this month.

New todo points and new features proposals are welcome.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #93093 is a reply to message #79445 ] Mon, 08 February 2010 20:18 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
I've added a new todo about the way to secure the file uploads.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #96928 is a reply to message #93093 ] Wed, 07 April 2010 21:27 Go to previous messageGo to next message
oweitman  is currently offline oweitman
Messages: 79
Registered: August 2008
Location: Germany
Member
atodo i ran into:
after i setup my site i checked google for the index of my site.
i saw that the pages-links are indexed with an session-id like http://www.url.com/?symfony=1234567abcdefg

after i searched in the forum i found the following advice:
http://forum.symfony-project.org/index.php/m/36201/?srch=ses sion+google#msg_num_9

to set the session handler for url off and to remove the wrong indexed pages from search-engines
Re: A todo list to check if your application is finished ! [message #97130 is a reply to message #79445 ] Sun, 11 April 2010 16:49 Go to previous messageGo to next message
tinynumbers  is currently offline tinynumbers
Messages: 7
Registered: January 2010
Junior Member
Under "Fix Your Deployments" you say...

Quote:

Production database must be protected

You really should add theses files to rsync_exclude.txt :

/config/databases.yml
/data/sql/schema.sql


... which implies that you shouldn't transfer databases.yml over to the production server. But without that file, how will the production server know the dsn/username/password for the database?
Re: A todo list to check if your application is finished ! [message #97132 is a reply to message #97130 ] Sun, 11 April 2010 16:58 Go to previous messageGo to next message
Ninj  is currently offline Ninj
Messages: 6
Registered: March 2008
Location: France
Junior Member
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.


-= Ninj =-
Re: A todo list to check if your application is finished ! [message #97134 is a reply to message #79445 ] Sun, 11 April 2010 17:23 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 40
Registered: February 2007
Location: Paris
Member
I fully agree with Ninj, that's also the reason why I suggest to exclude databases configuration files from deployments.

Tinynumbers : of course the production server will need these files.
"databases.yml" should be added by hand after the very first deployment and then you should generate "schema.sql" thanks to the the "symfony doctrine:build-sql" command.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #97138 is a reply to message #97132 ] Sun, 11 April 2010 17:57 Go to previous messageGo to next message
tinynumbers  is currently offline tinynumbers
Messages: 7
Registered: January 2010
Junior Member
Ninj wrote on Sun, 11 April 2010 09:58

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.

But my understanding (and the way I'm working, using Symfony 1.4) is that databases.yml contains different configuration sections for the different environments (dev, test, prod, etc) all within the same file, but under different environment names, so there's no chance that database configuration changes to one environment will mess up a different environment.

That's why I wondered about this.

I currently keep everything in SVN, and when doing a deployment on the production server, it just consists of three commands:

svn update
./symfony project:clear-controllers
./symfony cc

Works fine for me.
Re: A todo list to check if your application is finished ! [message #97140 is a reply to message #79445 ] Sun, 11 April 2010 18:54 Go to previous messageGo to next message
Ninj  is currently offline Ninj
Messages: 6
Registered: March 2008
Location: France
Junior Member
Ok, I understand that you're using environments to hold parameters of different servers (your local server in "dev", you remote production server in "prod"...)

Well, that's not really the purpose of environments. They exists so that you can easily manage a dev and a prod version on a server, for instance. But I guess there's nothing wrong in doing as you do.

In your case (databases.yml holds parameters for both the prod server and your local install), you can version it.

Hope that helped!


-= Ninj =-
Re: A todo list to check if your application is finished ! [message #97141 is a reply to message #97140 ] Sun, 11 April 2010 18:57 Go to previous messageGo to next message
tinynumbers  is currently offline tinynumbers
Messages: 7
Registered: January 2010
Junior Member
Ahhhh... yes I'm beginning to understand now. Since my "dev" environment sits on a "dev" server, and my "prod" environment sits on a "prod" server, I'm using the notions of "environment" and "server" synonymously / interchangeably. I certainly can see cases where that would not be how things are handled.

Thanks for the clarification.
Re: A todo list to check if your application is finished ! [message #97143 is a reply to message #97141 ] Sun, 11 April 2010 19:17 Go to previous messageGo to next message
Ninj  is currently offline Ninj
Messages: 6
Registered: March 2008
Location: France
Junior Member
Exactly, you got it Smile

With the exception that, personally, I mostly see cases where that shouldn't be. Environments are here to be switched, i would say almost dynamically. You test your pages in DEV, and then to be sure it works, you use the PROD environment. And when you encounter an error in PROD, you go back to DEV to get details.

The principle behind environments are obvious: you shouldn't play with prod database when doing your tests Smile And tests are to be ran both locally and then on the remote server after svn update. You're never sure what works on your computer will work the same on a hosted server. That's where you see that you need a DEV environment in both your local and the remote versions.

Think of that: a user reports to you an error on your prod site. The first thing to do is to try to reproduce it. Then you switch to the DEV mode on your server (thus changing the DB used) and try to get more information. When you know what's happening, you come back on your computer, make changes, and commit it. On the server you update, test to see weither the bug is effectively gone, and you're done!

Well, you could answer to me that, merging your approach and the usual one, a solution would be to create more environments : DEV & PROD for remote server, and LDEV & LPROD for local developpement. Why not? But that's up to you!


-= Ninj =-
Re: A todo list to check if your application is finished ! [message #100103 is a reply to message #79445 ] Mon, 31 May 2010 15:35 Go to previous message
Flukey  is currently offline Flukey
Messages: 10
Registered: March 2008
Location: France
Junior Member
Hi there!

First of all Riico, the site is brilliant. Good work!

I am surprised that there is no mention about minifying your js and css files.

There is a good plugin (http://www.symfony-project.org/plugins/sfMinifyPlugin) which does a very good job of this.

Anyone else agree it would be good to have included? It certainly speeds up performance!

Once again, good work. Smile
Previous Topic:Tutorials for Windows
Next Topic:How to get a value of the configuration file?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software