Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-02-2007, 05:08 PM
Junior Member
 
Join Date: Nov 2007
Posts: 2
Question Installation, Best Practices, Question

I'm a php developer for a mid sized company that has only recently began to offer web solutions to its clients on its own, so we're in the process of building our team and setting up standards and the like.

We've made the decision to make use of the framework as a building block for all our applications but my project manager and I seem to have a bit of a disagreement on how to go about installing the framework.

I think the best thing to do would be to install it once on each of our servers, with the idea that all domains would then have the exact same set of features and functionality available to them. This would mean that applications developed by our team would be easily portable to any of our domains since they are all based off the same version of the framework. Upgrades to the framework from Zend would have to be reviewed and tested before deployed on the servers but with unit testing like phpunit, this process wouldn't be overly dreadful and relatively secure for each of the domains, (in my mind atleast)

My manager however suggests that we install a version of the framework for each application or domain so that upgrades can be done independently of other domains. I understand his concern for the public stability of the site but I think that the process of reviewing upgrades and unit testing would be more maintainable than trying to keep track of nearly 40 different versions of the framework and upgrading each one independently.

Now I could be wrong, but so could he so I was wondering what you would do in this situation?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-02-2007, 06:58 PM
Elemental's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 122
Default

how about the best of both worlds, install the framework in the php include path with a directory name like Zend_Framework_1.0.2. Then in each clients space you can create a symlink to the version that client is using. When a new version comes out install it in Zend_Framework_1.0.3 and update your symlink when your ready.

This way you can have multiple versions of the framework available to all clients with only one actual copy of each version. Each client can use any available version on a client per client basis. You can easily roll back to a previous version by updating they symlink again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-05-2007, 02:38 PM
Junior Member
 
Join Date: Nov 2007
Posts: 2
Default

Now thats a great idea but one question, i'm not much of a System admin so how would to go about doing that in a virtual hosting environment? Can you create a symlink to a file outside the scope of that domain?

Thanks again for the help btw.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-09-2007, 01:28 AM
Elemental's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 122
Default

we run all our internal sites off the same server using vhost directives in apache

by putting the library in the php include path it will be available to all sites hosted by that server

We recently moved away from this solution however. What we do now is manage the Zned_Framework version through subversion. It works like so:

Each site has a subversion repository (svn://uri/siteA).
Since our sites all use a modular conventional FS layout (which includes a library folder parallel to the document root) we can easily attach a svn:externals property to the library folder and point it to the release tag of choice in the Zend repository.
When we need to update the version of ZF the site is using, we just update the svn:externals property and update to a development server where we can test and fix any issues. Once everything tests good we can update the live server via a svn update or switch to a new release tag for our site.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-24-2008, 02:18 AM
Junior Member
 
Join Date: May 2008
Posts: 11
Default

Tracking 40 versions of the framework could be really headache.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:04 PM.