heeboir
heeboir

Reputation: 739

Eclipse + PHP development/build/deployment environment setup

I'm new to PHP development and was wondering if an automated build/deploy cycle is easy to set up. What I'm thinking is having the PHP project inside Eclipse and being able to start a test instance on a remote test server which I will be controlling from within Eclipse (server start/stop). Also, upon saving changes having them automatically deployed on the server (in a manner similar to jvm's hot deploy). Debugging that remote test server would also be nice! The reason I am thinking of doing this to a remote machine instead of the local one is to have different team members accessing that server in turns from their own PCs.

Please note I am interested in the technicalities of setting up a test environment to assist development not a workflow for deployment.

Thanks in advance.

Upvotes: 0

Views: 741

Answers (1)

alexn
alexn

Reputation: 59012

That would slow down development way to much. It's much more efficent if each member have their own local webserver they can test on.

Introducing a shared server would open up to a lot of problems, for example, how would you handle situations where two members test their code at the same time? You do not want to upload your changes everytime you save a file, that's a lot of wasted time for just data transfer.

I would recommend setting up a continious integration environment with Hudson and pull your repo at a given interval. This can trigger a test run and verify your code. This way, you'll get notified when your code is broken, and who broke it.

Upvotes: 2

Related Questions