Search code examples
ubuntunginxphpstormgoogle-compute-engine

How can i setup remote project with PhpStorm with Google Compute Engine running LEMP?


I was working on a web cloud app and setup Google compute Engine with micro instance (Ubuntu 14.4) with nginx, Laravel, MySQL and PHP.

Now I want to setup my PhpStorm IDE with this setup to make development fast.

Kindly help me with this thing.


Solution

  • To make development faster with PHPStorm follow the steps below:

    1. Make sure you generate a SSH key-pair(public+private) with PuttyGen.

    2. Paste the contents of your public key in GCE in the SSH Key section. enter image description here

    You can find that section when you go to Edit menu of your GCE instance.

    1. Go to PHPStorm and enter data for your remote host in Tools/Deployment/Configuration

    2. Choose SFTP and browse and enter the path to your private key in "Private Key File" field.

    enter image description here

    Now test your connection and enjoy rapid deployment with PHPStorm and GCP