Skip to content

Example: Static Apache site

auser edited this page Sep 13, 2010 · 5 revisions

Prerequisites

This requires that Poolparty has access to EC2. Find out how to set this up at Setting up ec2.

1. Create the manifest

Create a clouds.rb so it looks like this, making sure to set your keypair correctly and save it in the current working directory (pwd):

2. Start the cloud

In the terminal, change into the static_apache_site directory and type cloud start and press Enter. This will launch a new instance with Apache listening on port 80.

3. Test the instance

Once your new instance is provisioned, you’ll see a message saying “Your cloud has started” followed by the instance’s IP address. Copy and paste it into a browser and you should see the words “Hello world!”

You’re now running a simple Apache site on EC2 launched by Poolparty!

Another example static site can be found here.

Note: Don’t forget to shut down your instance with cloud terminate when you’re done testing!