Connecting with the Zend DevCloud in Linux is actually quite easy if you know how to use SFTP. When you first created your DevCloud account you would have been prompted to download your private key. This is a private key that is generated, but not stored, on the DevCloud. You can then connect with the simple command [[email protected] ~]# sftp [email protected] Connecting to kschroeder.my.phpcloud.com… sftp> ls applications www sftp> or also with the -i flag if your private key is not in the default location. Note, your container cannot be
One of the things I have royally disliked about just about every cloud based development environment out there is that the tooling they offer usually has additional steps to push code onto the development instance in the cloud. I, personally, do not like having to Alt-Tab between windows to do basic tasks. Heck, I don’t even like touching the mouse unless my purpose is vanquishing Shub-Niggurath. That’s why I like the auto-uploading features in Zend Studio and also in PHPStorm. But what if you’re working off of the command line or
Just because you want to use the Zend Developer Cloud at phpcloud.com doesn’t mean that you necessarily use Zend Studio. While I may wonder why you don’t use Zend Studio ( 🙂 ) I know there are a lot of other good IDE’s on the market and an IDE like PHPStorm might suit how you do your development. So how to get started. With Zend Studio you can deploy an existing application by dragging a project onto a target. The Git repository, document root and all that will be created
PHPCloud.com is the landing page for our new cloud offering. Using the Zend Application Fabric you can build your applications in the same environment as you will be deploying your apps to. The application is built on my.phpcloud.com and you can then deploy it onto any platform where the Fabric is supported. But how do you get started? Phpcloud.com has been built in a way where you can connect with any IDE. With Zend Studio 9 that connectivity has been built directly in to the IDE. Getting started is actually
Connecting to the database in the Zend Developer Cloud is quite easy. You just need the container name, database name, username and password. But what if you changed containers or your password? If you want to make your application able to be easily moved between containers (and you should) here is a stupid easy way to do it. Use get_cfg_var(). For example 1 2 3 4 5 6 7 8 9 10 11 $dsn = sprintf( ‘mysql:dbname=%s;host=%s’, get_cfg_var(’zend_developer_cloud.db.name’), get_cfg_var(’zend_developer_cloud.db.host’) ); $db = new PDO( $dsn, get_cfg_var(’zend_developer_cloud.db.username’), get_cfg_var(’zend_developer_cloud.db.password’) ); Easy.
If you are using phpcloud.com and are experiencing errors with git that look like this git push Password: Counting objects: 722, done. Delta compression using up to 2 threads. Compressing objects: 100% (711/711), done. error: RPC failed; result=22, HTTP code = 411 fatal: The remote end hung up unexpectedly Writing objects: 100% (719/719), 1.34 MiB | 1.32 MiB/s, done. Total 719 (delta 340), reused 0 (delta 0) fatal: The remote end hung up unexpectedly Iatal: expected ok/error, helper said ‘2004??LEOx?nq?; < |DP?n,?U?EԎs?m?WX?G?Tl??jA?/?’ and you are trying to push large files
Well that’s a stupid question, isn’t it? It’s “Development done right”, “Fast, Elastic, Dependable” and on “Any Cloud”, right? If you are unclear as to what phpcloud.com is, what the Zend Application Fabric is and what the DevCloud is then this is a good post for you. Before I say what it is, let me say what it is not. It is NOT a hosting platform. It is not intended for production usage. It is intended to give you a quick DEVELOPMENT environment. I use caps because I think this