Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stephen Melrose  
View profile  
 More options Sep 26 2008, 11:43 am
From: Stephen Melrose <step...@sekka.co.uk>
Date: Fri, 26 Sep 2008 08:43:15 -0700 (PDT)
Local: Fri, Sep 26 2008 11:43 am
Subject: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Hi there,

We're just coming to the end of a project here at work that we built
using Symfony 1.0.17.

In the not too distant future, we will be starting our next project
that we will be building in Symfony 1.1 (or 1.2 if it is out by then).

However, we will also need to maintain the first project in 1.0.17 for
the forseeable future.

My question is, what is the best way to have multiple versions of
Symfony installed on one computer and develop with them, hopefully at
the same time?

I have done some playing this week and I believe I achived this, by I
want to check if what I am doing is the best method.

I have a folder called "Stock Code" and within it I have 2 Symfony
folders which are check outs from the SVN. One is version 1.0.17 and
the other is 1.1.2. I have not used PEAR.

If I want to develop in either version, I set my Symfony path in
environment variables in my system to the folder of the version I am
working in.

Is this the right approach?

Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Wage  
View profile  
 More options Sep 26 2008, 2:10 pm
From: "Jonathan Wage" <jonw...@gmail.com>
Date: Fri, 26 Sep 2008 13:10:36 -0500
Local: Fri, Sep 26 2008 2:10 pm
Subject: Re: [symfony-users] Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine

I would keep your system up-to-date with the latest version via PEAR and
then each individual symfony project should have the symfony libraries used
to build the project frozen with the svn repository or included via
externals.

- Jon

On Fri, Sep 26, 2008 at 10:43 AM, Stephen Melrose <step...@sekka.co.uk>wrote:

--
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ant Cunningham  
View profile  
 More options Sep 26 2008, 3:34 pm
From: Ant Cunningham <Ant.Cunning...@gmail.com>
Date: Fri, 26 Sep 2008 12:34:09 -0700 (PDT)
Local: Fri, Sep 26 2008 3:34 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
We use an external from lib/vendor/symfony => [release tag]. and then
just use ./symfony to call tasks from the project directory. As far as
keeping a copy on the system we do as John i suggesting. Our PEAR
installs are for the current release, and then  we have $PEAR/
symfony-1.0.17, $PEAR/symfony-1.2, etc.. with symlinks from $PEAR/
symfony-1.0.17 => /usr/bin/symfony10 and so forth. Although except for
generating the initial project, the pear installations rarely see any
use.

On Sep 26, 2:10 pm, "Jonathan Wage" <jonw...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Melrose  
View profile  
 More options Sep 26 2008, 3:48 pm
From: Stephen Melrose <step...@sekka.co.uk>
Date: Fri, 26 Sep 2008 12:48:03 -0700 (PDT)
Local: Fri, Sep 26 2008 3:48 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Thanks for the comments.

I did some playing since I posted my message and I discovered exactly
what you describe. After the initial init-project, all I need to do is
to set the relevant paths within the config and the symfony file in
the route becomes the point of access for commands. I did not know
this! I thought the command line always went to the symfony version it
was setup for, but I looked at the .bat file and saw what it actually
does.

So projects will become a hell of a lot easier as I can just have the
tag release as an external as you said.

Just to clarify, did you say you place it within /lib/vendor/symfony/?
Should it not be outside the actual symfony project folder? e.g.

<project>
 - symfonyapp
 - symfony1.1.2

Jonathan, one last question. You said I should do the external route
or freeze the application. I was under the impression that you should
only freeze for deployment. Is this not the case?

Thank you both!

On 26 Sep, 20:34, Ant Cunningham <Ant.Cunning...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ant Cunningham  
View profile  
(1 user)  More options Sep 26 2008, 4:22 pm
From: Ant Cunningham <Ant.Cunning...@gmail.com>
Date: Fri, 26 Sep 2008 13:22:49 -0700 (PDT)
Local: Fri, Sep 26 2008 4:22 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine

> Just to clarify, did you say you place it within /lib/vendor/symfony/?
> Should it not be outside the actual symfony project folder? e.g.

Well i suppose that depends on how you work. We work from the
assumption that every project uses a different version (thought thats
rarely the case). And when we deploy its typically to a server where
there is only that particular project running so we keep everything in
the project itself. That way we dont have to bother with using freeze,
or installing via pear on the server. We just change the necessary
settings (databases, propel, etc..), make a tag in svn and
project:deploy then build and load the data on the server.

> Jonathan, one last question. You said I should do the external route
> or freeze the application. I was under the impression that you should
> only freeze for deployment. Is this not the case?

You can freeze for whatever purpose you like... Freeze basically moves
all the necessary libs inside the project structure (similar to the
external method i just described).

On Sep 26, 3:48 pm, Stephen Melrose <step...@sekka.co.uk> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Wage  
View profile  
 More options Sep 26 2008, 4:26 pm
From: "Jonathan Wage" <jonw...@gmail.com>
Date: Fri, 26 Sep 2008 15:26:11 -0500
Local: Fri, Sep 26 2008 4:26 pm
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine

I always freeze so that the libraries are WITH the project. I do this so
that we don't have a scenario where the server libraries are upgraded,
breaking my application. Having it frozen guarantees the code is 100%
portable and can move from server to server without any knowledge of what
version of symfony it requires.

- Jon

On Fri, Sep 26, 2008 at 3:22 PM, Ant Cunningham <Ant.Cunning...@gmail.com>wrote:

--
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Melrose  
View profile  
 More options Sep 26 2008, 7:08 pm
From: Stephen Melrose <step...@sekka.co.uk>
Date: Fri, 26 Sep 2008 16:08:42 -0700 (PDT)
Local: Fri, Sep 26 2008 7:08 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Cheers for the help Ant and Jonathan.

I'm going to go down the svn:externals route.

Lesson learned!

On 26 Sep, 21:22, Ant Cunningham <Ant.Cunning...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Melrose  
View profile  
 More options Sep 26 2008, 7:56 pm
From: Stephen Melrose <step...@sekka.co.uk>
Date: Fri, 26 Sep 2008 16:56:19 -0700 (PDT)
Local: Fri, Sep 26 2008 7:56 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
One more associated question.

I use Eclipse, PDT and Symfoclipse to develop with Symfony.

Now that I have Symfony 1.1.2 as an svn:external in /lib/vendor/
symfony/ and altered my ProjectConfig file to point to it, the
Symfoclipse commands have stopped working for that project.

If I make a new project in the same workspace, the commands run fine,
only the project with the svn:external.

Some playing around with the PHP in ProjectConfig led me find that
symfoclipse functionality stops working whenever the
sfCoreAutoload.class.php is included.

Any ideas?

On 26 Sep, 21:22, Ant Cunningham <Ant.Cunning...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ant Cunningham  
View profile  
 More options Sep 27 2008, 3:07 am
From: Ant Cunningham <prodigital...@vectrbas-d.com>
Date: Sat, 27 Sep 2008 03:07:18 -0400
Local: Sat, Sep 27 2008 3:07 am
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Don't use Symfoclipse :-)

Seriously, its a lot easier t manage if you just make your own external
tool definition. I have mine set up to point to ${project_loc}/symfony
(ie. ./symfony) taking one argument - ${string_prompt}

I just hit my hot key and type out my command in the dialog, and hit
enter. No right clicking on a certain directory or remembering which
directory serves as the context for which task... And one less plugin
which, on my dinosaur of a G4, is a good thing :-)

I do like its YAML editor though...

--
Ant Cunningham
Graphic Designer | Web Developer
Vector Based Design

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Perriault  
View profile  
 More options Sep 27 2008, 3:29 am
From: "Nicolas Perriault" <nperria...@gmail.com>
Date: Sat, 27 Sep 2008 09:29:07 +0200
Local: Sat, Sep 27 2008 3:29 am
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine

On Sat, Sep 27, 2008 at 1:08 AM, Stephen Melrose <step...@sekka.co.uk> wrote:
> I'm going to go down the svn:externals route.

Just one more trick, to have the three versions of symfony and their
CLI executables available on your system (eg. on your dev machine):

$ cd /usr/share/php
$ svn co http://svn.symfony-project.com/branches/1.0 symfony10
$ sudo ln -s /usr/share/php/symfony10/data/bin/symfony10 /usr/bin/symfony10
$ svn co http://svn.symfony-project.com/branches/1.1 symfony11
$ sudo ln -s /usr/share/php/symfony10/data/bin/symfony11 /usr/bin/symfony11
$ svn co http://svn.symfony-project.com/branches/1.2 symfony12
$ sudo ln -s /usr/share/php/symfony12/data/bin/symfony /usr/bin/symfony12

Then:

$ symfony10 -V
$ symfony11 -V
$ symfony12 -V

But for production purpose, freezing and syncing is the way to go.

++

--
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 67


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Olivier Mansour  
View profile  
 More options Sep 27 2008, 4:01 am
From: Olivier Mansour <omans...@gmail.com>
Date: Sat, 27 Sep 2008 10:01:11 +0200
Local: Sat, Sep 27 2008 4:01 am
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Hey

In addition to your discussion I can add this note.

In a prod env, if you want to freeze your symfony version in a certain  
revision and keep doing svn up on your project root, you can use  
piston : http://piston.rubyforge.org/details.html

bye
Olivier

Le 27 sept. 08 à 09:07, Ant Cunningham a écrit :

--
Olivier Mansour
omans...@gmail.com
http://www.glagla.org

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kiril Angov  
View profile  
 More options Sep 27 2008, 1:04 pm
From: "Kiril Angov" <kupokom...@gmail.com>
Date: Sat, 27 Sep 2008 20:04:48 +0300
Local: Sat, Sep 27 2008 1:04 pm
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Piston did not work with the Symofony repository because it does not
handle when the svn:external has an svn:external by itself. I
submitted a bug report and the guy said he will fix it for version 2.0
and that is not out yet. As a matter of fact it is not updated since
early 2008 so I would not bother figuring out Piston just to find the
problem I faced some months ago.

Kiril


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Melrose  
View profile  
 More options Sep 27 2008, 1:35 pm
From: Stephen Melrose <step...@sekka.co.uk>
Date: Sat, 27 Sep 2008 10:35:51 -0700 (PDT)
Local: Sat, Sep 27 2008 1:35 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Cheers for all the help guys.

I spent hours playing trying to get Symfoclipse working, but the pro/
cons of having the symfony code within my project far out way an IDE
tool working, so I've ditched trying to get it to work. I've just put
a couple of batch files in the project root for clearing cache and
propel build all just as a quick shortcut, everything else I will CMD
for.

I'm still debating however on whether to freeze or svn:external. I'm
thinking I may freeze as a lot of the data within the Symfony tag
folders isn't relevant for the project folder.

Thanks again all!

On 27 Sep, 08:07, Ant Cunningham <prodigital...@vectrbas-d.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Olivier Mansour  
View profile  
 More options Sep 27 2008, 2:10 pm
From: Olivier Mansour <omans...@gmail.com>
Date: Sat, 27 Sep 2008 20:10:12 +0200
Local: Sat, Sep 27 2008 2:10 pm
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine

Le 27 sept. 08 à 19:04, Kiril Angov a écrit :

> Piston did not work with the Symofony repository because it does not
> handle when the svn:external has an svn:external by itself.
> I
> submitted a bug report and the guy said he will fix it for version 2.0
> and that is not out yet. As a matter of fact it is not updated since
> early 2008 so I would not bother figuring out Piston just to find the
> problem I faced some months ago.

thanks for the notes. I am discovering those points.
Its not very comfortable if this soft seems no more maintained :-(

Olivier

--
Olivier Mansour
omans...@gmail.com
http://www.glagla.org

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Lemoine  
View profile  
 More options Sep 27 2008, 6:41 pm
From: Eric Lemoine <rati...@gmail.com>
Date: Sat, 27 Sep 2008 15:41:05 -0700 (PDT)
Local: Sat, Sep 27 2008 6:41 pm
Subject: Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Hello Kiril

Recently I faced the same problem (svn:externals within another
svn:externals) with Piston.
I fact "piston convert" does not work in this case.
But "piston import" works fine and has no problem handling multi-level
externals.
So if you use svn:externals in your project, first delete the
svn:externals property, then delete the directories which were related
to this external definition.
Commit these changes to your repository.
Finally use "piston import" to recover these directories and commit
this last change.

Piston is a great help ;)

Eric

On 27 sep, 19:04, "Kiril Angov" <kupokom...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James  
View profile  
 More options Oct 18 2008, 9:23 pm
From: James <thenet...@gmail.com>
Date: Sat, 18 Oct 2008 21:23:39 -0400
Local: Sat, Oct 18 2008 9:23 pm
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
OK, I need some help in this realm as well.

For the past 11 months I have been working on a project with another  
developer using symfony 1.0.17.  I want to start using 1.1 on a  
personal project, problem is my work computer is my personal  
computer.  I have tried to follow this thread, but to be honest some  
of it confuses. me.

I installed 1.0.17 using pear.

I moved the pear/symfony and pear/data/symfony directories to be  
renamed to symfony-1.0  Then I modified  /usr/bin/symfony, /usr/local/
php/bin/symfony and projecname/symfony all to point to the 2 new  
directories. and then renamed them to symfony 1.0 (with the exception  
of projectname/symfony that stayed the same).  Then then added PATH=".:
$PATH" so that when I am in my project it looks at the symfony  
executable in my project directory.  I then modified my config/
config.php file to point to where it needed to point too.

I've tested it, doing a "where symfony" when in the project directory  
gives me the projects symfony binary as working binary am able to  
clear cache etc...

Now I try to install symfony

 > sudo pear install symfony/symfony
Ignoring installed package symfony/symfony
Nothing to install

Not sure how to get around this, I'd appreciate some suggestions.

Thanks,
James


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James  
View profile  
 More options Oct 18 2008, 9:48 pm
From: James <thenet...@gmail.com>
Date: Sat, 18 Oct 2008 21:48:57 -0400
Local: Sat, Oct 18 2008 9:48 pm
Subject: Re: [symfony-users] Re: Developing Symfony 1.0, 1.1, 1.2, etc, Projects Simultaneously On One Machine
Solved it, moved my 2 directories so they wouldn't get trashed, then  
did an upgrade, all seems happy now, we'll see how well it works.

Thanks,
James

On Oct 18, 2008, at 9:23 PM, James wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google