Hello guys!
I am currently working on a module where I am using Flash, PHP and Java. For Java testing on a server, I have cofigured my eclipse with a publish to local server whenever changes are applicable.
For PHP, I am using EasyPHP server installation and eclipse PDT plugin to develop PHP pages. As of now PDT plugin doesn’t support to have a PHP server runtime configured and publish pages to the server. You manually have to copy the files to the directorty of the server.
To be able to test the same from eclipse and publish it automatically, I have come across couple of ways. Let’s have a look.
Option1: Create eclipse project in www root
This way, you create a project directly under the www root directory of the AMP server so that you can view and run files as soon as you save the same. So for an EASY PHP server I create the eclipse workspace under “C:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb”. The path can be different based on your installation. Now after all changes to PHP that I do, they immediately reflect on the server without making any changes. This is fastest way of handling the PHP pages run on server.
Option2: Use Briefcase
Now it is not always easy to create multiple workspaces. We need sometime a specific workspace at a specific location. So I normally keep my workspace in a portable drive and have it worked on from different workstations. Now how do I make it deployable to server immediately. I make a structure for my deployments.
- Create a breifcase under the localweb folder/www root folder of the server.
- Copy the project folder from the any workspace you like to this folder.
- Keep on working in individual workspaces
- To deploy all selected workspaces to server, just go to the breifcase, click “Update All”
- Your workspaces are ready to be tested.
I prefer option#2.
Whats your views?