How can i setup remote project with PhpStorm with

2019-08-25 21:31发布

问题:

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.

回答1:

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.

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.

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