[null, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "http://4.bp.blogspot.com/-aU0xbItXpl8/TqQPGE9hmoI/AAAAAAAAHp4/AJM7b_TEgTc/s320/apps.png", "src": "http://4.bp.blogspot.com/-aU0xbItXpl8/TqQPGE9hmoI/AAAAAAAAHp4/AJM7b_TEgTc/s320/apps.png", "formatted_filename": "apps", "rendered_width": 320, "rendered_height": 300}, null, null, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "http://1.bp.blogspot.com/-uA_De1Smz4c/TqV4iGX3pXI/AAAAAAAAHqw/UDRhxJf8uIg/s320/pull_down_git.png", "src": "http://1.bp.blogspot.com/-uA_De1Smz4c/TqV4iGX3pXI/AAAAAAAAHqw/UDRhxJf8uIg/s320/pull_down_git.png", "formatted_filename": "pull down git", "rendered_width": 320, "rendered_height": 260}, null, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "http://4.bp.blogspot.com/-0EpuKvsJ39k/TqV4gBIgjII/AAAAAAAAHqg/1vUJ_DARGxA/s320/launch.png", "src": "http://4.bp.blogspot.com/-0EpuKvsJ39k/TqV4gBIgjII/AAAAAAAAHqg/1vUJ_DARGxA/s320/launch.png", "formatted_filename": "launch", "rendered_width": 320, "rendered_height": 103}, null, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "http://1.bp.blogspot.com/-WlPKrAUH1pQ/TqV4hDpVvVI/AAAAAAAAHqk/v8LUToUwPs0/s1600/open_tunnel.png", "src": "http://1.bp.blogspot.com/-WlPKrAUH1pQ/TqV4hDpVvVI/AAAAAAAAHqk/v8LUToUwPs0/s1600/open_tunnel.png", "formatted_filename": "open tunnel"}, null, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "http://1.bp.blogspot.com/-e-Ff9p5L7gU/TqRmJtsZBZI/AAAAAAAAHqI/rAh7LhNiflk/s320/sftp_connection.png", "src": "http://1.bp.blogspot.com/-e-Ff9p5L7gU/TqRmJtsZBZI/AAAAAAAAHqI/rAh7LhNiflk/s320/sftp_connection.png", "formatted_filename": "sftp connection", "rendered_width": 320, "rendered_height": 264}, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "http://2.bp.blogspot.com/-5UpXt4QyMOA/TqRmMOn0z1I/AAAAAAAAHqQ/Ht4MoBetZVY/s320/remote_server.png", "src": "http://2.bp.blogspot.com/-5UpXt4QyMOA/TqRmMOn0z1I/AAAAAAAAHqQ/Ht4MoBetZVY/s320/remote_server.png", "formatted_filename": "remote server", "rendered_width": 320, "rendered_height": 177}, null, null, null, {"document_url": "http://ganoro.blogspot.com/2011/10/pull-down-application-created-on.html", "unformatted_src": "//bp1.blogger.com/_AL58K5147Xg/R764sRCgVII/AAAAAAAAC78/OEY1ejAIO3k/S220-s80/roy.jpg", "src": "http://bp1.blogger.com/_AL58K5147Xg/R764sRCgVII/AAAAAAAAC78/OEY1ejAIO3k/S220-s80/roy.jpg", "formatted_filename": "roy", "alt_text": "My photo", "rendered_width": 80, "rendered_height": 71}, null, null, null]

Pull Down an Application Created on phpCloud One of the most promising features in Zend Developer Cloud will be to deploy today's most-famous Web applications directly into your container, without being required to supply the application package. The list of pre-packed applications includes projects like Drupal, Joomla, Magento, Wordpress and a customized Zend Framework. Probably Zend will add more applications in the future (want to suggest one?)

The obvious question is, what will be the best practice for working with an already deployed application and how to pull it down to your development environment?

As a background there are two ways for managing an already deployed project, you can select either of the following options depending on your high level development workflows and your tools (ahch, ahch, Zend Studio supports both of them). One important note that is applied for both solutions - you don't need to deploy the project once again. Just modify the content and make sure it's updated properly in the cloud.

Clone Application via Git Repository

One of the Easter Eggs hidden in this already-packed deployment feature is that once an application is deployed, a git repository is created so developers can clone it and later on push their content. Use a command line tool or any development  environment to clone the application. Then use push to upstream git action to update the actual remote application.

To retrieve the application Git Repository, go to you container overview page:
https://my.phpcloud.com/container/<container-name>/overview and push the "git access" button. Use your container name and password as username and password when you make any operation with this repository. This Git repository authentication is based on secured HTTP with the following details:

Using Zend SDK:

You can use the latest Zend SDK to clone the code to your machine by running the git clone command with your git repository parameters:

zend clone project -r <git-repository-url> -u <user> -p <password>

Using Zend Studio 9.0:
We are about to use a new feature added to Zend Studio in its latest release that enables you to clone a Git repository, start by File | New | PHP Project from Git. A wizard will show up and you will need to enter the information required for this clone operation to happen. Follow the wizard and hit "Finish". Once your project is cloned, you can start a debug session right-clicking on the index.php file and selecting "Debug as...", supply the full URL of the application and press OK. Don't forget to open the SSH Tunnel by right-clicking on its node that available in the Targets view and selecting "Open SSH Tunnel" Download Application via SFTP Client

The trivial way is to use an integrated SFTP client that supports download and upload actions to the SFTP server installed on your container. Remember the following: Hope this tutorial helps you to configure your development environment and you take advantage of it, but if you think there is a different (better) way don't hesitate to comment below.

Posted by Roy Ganor at 6:10 AM Labels: phpcloud zend studio cloud best practices development

 Roy Ganor
