Using PHPCloud with Codenvy

SSH Key Configuration

SSH keys configuration for PHPCloud somewhat differs from other Git hosting proividers:

  • go to Window > Preferences > SSH Keys and press Generate Key button. Enter hostname as:
phpcloud.com

(no www or https!) and click OK

  • the key will appear in the list of SSH keys. Click View and copy the key to clipboard. Make sure you’ve selected and copied the entire key text
  • create a notepad document locally on your machine, paste the key text and save the file (*txt extension)
  • go to your PHPCloud account, click on Access keys and upload the key you’ve saved locally 

Clone From PHPCloud

The easiest way to migrate your projects to Codenvy is to clone PHPCloud repository with the project’s source code:

  • go to Git > Clone Repository
  • copy and paste the repository Git URL
  • modify project’s name, if appropriate, and click Clone

Push to PHPCloud

To push to PHPCloud, you first need to add a remote repository in Codenvy at Git> Remotes > Add (unless it is already there after cloning). Enter the repository name and its SSH Git URL which should look like:

ssh://codenvy@codenvy.my.phpcloud.com/gitprojects/container-root.git

Having added a remote repository, you can push to PHPCloud at Git > Remote > Push. The repository you have just added should appear in the list of remote repositories. For more info see Remote Repositories.