Eclipse, SVN, Multiple Servers

Modeps

Lifer
Oct 24, 2000
17,254
44
91
I've got three environments setup for development of my PHP app.

Here's how I do things currently:
1) Synchronize with my head revision from the SVN server to my local hard drive copy (with Subclipse)
2) Make changes to my local copy (Eclipse PDT), upload those to the test environment (Normal SFTP Prog).
3) Once changes are tested and working, I'll commit my changes to the SVN repository (with Subclipse) and then upload those changes manually to the production environment (Normal SFTP Prog).

I'd like to, if possible, remove the manual process of uploading files to the test/prod environments with my normal SFTP app, and do it all through Eclipse to avoid potentially missing files in the manual process (as Eclipse is nice enough to flag items that change for me)

Basically I'd like something like this:

1) Synchronize with my head revision from the SVN server to test environment (with Subclipse)
2) Make changes on the test environment (with Eclipse PDT)
3) Once tested and working, Commit my changes to the SVN repository and also upload them to the production environment (Maybe a combo of Subclipse / Other Plugin)

Any ideas or solutions?
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
What you're asking about is probably Release Management. You might be able to research that and find some tools that are good for you.
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Originally posted by: Thyme
What you're asking about is probably Release Management. You might be able to research that and find some tools that are good for you.

I took a look around and found a build of Eclipse that sounds like its got everything I want, but it's not free... Called Zend. I gave it a shot in trial form, and was able to utilize repository syncing. In general it was really nice but I'm a garage dev, I can't spend the cash for it.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
why not use your test environment as your develoment environment (local machine)

then use whatever svn client you prefer (like tortoise)

then just ftp your files when you need to upload
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Originally posted by: troytime
why not use your test environment as your develoment environment (local machine)

then use whatever svn client you prefer (like tortoise)

then just ftp your files when you need to upload

I don't want to setup the DB on my local machine as its a multi-developer project. As for the other parts as you're mentioning, I'm basically already doing that.
 

AbsolutDealage

Platinum Member
Dec 20, 2002
2,675
0
0
You could just write your own Eclipse plugin to do what you are describing.

You could write a standalone plugin that uses the extension points and piggybacks on top of subclipse... or you could just go grab the source for Subclipse and try and shoehorn it in there. Either way, it doesn't sound too painful.
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Originally posted by: AbsolutDealage
You could just write your own Eclipse plugin to do what you are describing.

You could write a standalone plugin that uses the extension points and piggybacks on top of subclipse... or you could just go grab the source for Subclipse and try and shoehorn it in there. Either way, it doesn't sound too painful.

As much fun as that sounds, I just don't have the capacity or knowledge required to do that. I'm not a Java programmer.
 

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Originally posted by: fyleow
I suggest reading the Subversion book if you haven't already. It's an excellent resource that should get you heading in the right direction. You should be able to accomplish what you want to do with the right repository layout and repository hooks which can be written in PHP.

I've got no control over the actual Subversion install unfortunately. I'm using http://www.beanstalkapp.com