Configuring AWS Cloud9 on a Laravel Forge Provisioned Server

AWS Cloud9 is a full featured web-based IDE that you may want to configure on your Laravel Forge provisioned server, especially if you use a VPS for your development environment

Kevin Cristella
3 min readOct 30, 2018

Assumptions

Setup

If you don’t already have a server that you would like to configure with AWS Cloud9, you should create one in Laravel Forge.

Once logged in to your Cloud9 dashboard, you will want to initiate the Create environment process.

On the next screen specify a name and optional description then click Next step.

Chose SSH as your Environment type and then click the Copy key to clipboard button to copy AWS’s public SSH key to your clipboard which you will then need to add to your server in Laravel Forge.

Once the public key is copied, add it to your server in Laravel Forge.

Then go back to the AWS Cloud9 setup and populate the following fields:

  • User: forge
  • Host: your server’s IP address
  • Port: 22
  • Environment path (need to expand Advanced settings): ~/

Once those configurations are set, click the Next step button.

If you see this confirmation screen it means that Cloud9 was able to connect to your server via SSH. Otherwise, you’ll get an error message. If the information looks good, click the Create environment button.

You’ll then be prompted to install some Cloud9 dependencies. You can review individual dependencies or chose to install everything and click Finish.

When the dependencies are done installing you will be taken to the AWS Cloud9 IDE where you can edit files for your sites (default Laravel Forge site circled in screenshot below) or open a terminal window.

--

--