Zend Studio's Automatic Upload feature allows you to work on your project in Zend Studio, while synchronizing all your project files to your application container as you edit them, or if you prefer, upon request. All you have to do is set up Remote Server support for your project with your Zend Developer Cloud application container as the remote server.
Prerequisites
Zend Studio - If you have not yet installed Zend Studio, you may download it from http://www.zend.com/en/products/studio/downloads.
Instructions on how to complete a procedure
To use Zend Studio's Automatic Upload:
Add your application container's private access key to Zend Studio:
In Zend Studio menu-bar, go to Window | Preferences (in Linux or Windows) or Zend Studio | Preferences (in Mac OS X).
The Preferences dialog is displayed.
Enter 'ssh' in the Search box, and select General | Network Connections | SSH2.
In the General tab, click Add Private Key.
Locate and select your PEM encoded private key file which you downloaded during container creation (or the private key file paired with the public key file which you have uploaded).
The path to your private key file is added to the Private Keys field.
Click OK to save your changes and close the dialog.
Open the PHP or Zend Framework project that you want to upload to your application container, or create a new project.
Configure your project to use your application container as its Remote Server:
In the menu-bar, go to Project | Properties | Automatic Upload.
The Automatic Upload properties dialog is displayed.
Select the Remote Connection option, and click Manage.
The Remote Connection Profile dialog is displayed.
If you have not created a remote connection profile, the New Remote System Connection dialog will appear. If you already have at least one remote connection set up, click Add to add a new connection.
Enter the host name for your Zend Developer Cloud container (.my.phpcloud.com), and select SSH as the system type.
Click Finish.
Back in the Remote Connection Profile dialog, enter the name of your Zend Developer Cloud container in the Username field, and click Test Connection to verify your settings.
Should no problems arise, click Finish.
Back in the Automatic Upload properties dialog, in the Application Directory field, enter the remote directory under which the project is to be deployed.
This should be one of the following:
For a traditional PHP application that is designed to be deployed entirely onto the Web server's document root, enter:
//applications//public
For a project that is designed to be deployed entirely outside the document root with the exception of specific files (as in the recommended Zend Framework project layout), enter:
//applications/
Note:
Make sure your project's document root directory is named 'public', and is directly under the project's root directory.
Click the Upload Files drop-down menu, and select how Zend Studio will upload files to your container:
On Save - To automatically upload files as they are modified and saved.
On Run - To automatically upload files as you run them or start a debug session.
Manually - To never upload files automatically. In this mode files are uploaded to the container only if you choose to do so.
Click OK to save your settings.
When prompted to upload files to the server now, click Yes to synchronize your project to the server.
To manually synchronize your files to the server, right-click the project's root directory in the PHP Project Explorer, and select Remote Servers | Upload To Server.
The Data Upload Selection dialog is displayed.
Select which files you wish to synchronize, and click Finish.
Copyright © 2011 - All Rights Reserved - Softron.in
Template by Softron Technology