Deploying your Site with phpEclipse - FTP, SFTP, and WebDAV Export
(Page 2 of 4 )
FTP, SFTP, and WebDAV exports are very similar. They follow the same flow and use almost the same screens. To trigger an export, select the project in the Navigator view and click on the File | Export… menu option. This will give you a list of export options to select from.
The Klomp plug-in gives us the ability to export via SFTP. Unfortunately, as of this writing, it does not work with the latest version of Eclipse, version 3.1. If you absolutely need a secure way to transfer files and Klomp does not work with your version of Eclipse, you might consider using WebDAV over the https:// protocol, or Ant using SFTP.

Most of the options in this list are installed by the JDT and are Java related. Some allow you to export settings to be shared between team members. A handful, like FTP, Sftp, and WebDAV, are actually related to moving source files to another area. Select FTP and click on the Next button to continue.
If you get an error message saying 'unable to load class' you will have to download drops containing FTP and WebDAV target management support plug-ins from the Eclipse site. Go to the Eclipse download site http://download.eclipse.org/eclipse/ downloads/ and click on your version you will find the drops for FTP and WebDAV Support on that page. Download and copy all the contents of the features and plugins directories into the features and plugins directories of your Eclipse installation.
The next screen will ask if you wish to export a project that you previously exported via FTP:

When you are first presented with this screen and if you have not done this before, the text area will be empty. Click on the Choose a new project to be exported radio button and you will be presented with a list of all the projects in your workspace. Select the ShelterSite project and click the Next button to continue. Eclipse will create a deployment mapping for this project. When you export again in the future, Eclipse reads this mapping to the server settings associated with a project, saving you a few of the following steps to choose a server.

Similar to the last screen, this screen will ask if you want to export the project to a location to which you previously exported, or if you want to export to a new location. Again, if you have never exported via FTP before, the list area will be blank. Choose Create a new site and click on Next, this will launch the Create a connection to an FTP site dialog box.
All of your FTP, SFTP, and WebDAV locations on this screen can be edited and deleted from the Site Explorer view. Access this view by going to the window | Show Vew… | Other... | Target Management | Site Explorer menu option.

Enter your server connection settings here. Click the Next button to continue. If you are using WebDAV or SFTP, this screen will be different. However, all three will essentially ask you for the same details, like server name and authentication.
On the final screen in the export wizard, you will have a chance to decide which files you want to upload. You can select individual files, or upload the entire project into the remote directory by checking the correlating checkbox next to the item. If the site has been previously uploaded, you can also do a line-by-line code comparison of the project.

After you are done analyzing the code, click on the Finish button. The upload process will begin at this point. After this step, your site will be uploaded to the remote server, and you will be taken back to the development perspective.
Next: Using Ant for Deployment >>
More Web Authoring Articles
More By PACKT Publishing
|
This article is excerpted from PHPEclipse: A User Guide, written by Shu-Wai Chow (Packt Publishing, 2006; ISBN: 1904811442). Check it out today at your favorite bookstore. Buy this book now.
|
|