Web service application for receiving Tropo recordings from the cloud and pushing them to Amazon S3
Ruby
Pull request Compare This branch is 2 commits ahead of voxeolabs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
log
Gemfile
Gemfile.lock
LICENSE
README.textile
config.ru
tropo-audiofiles-to-s3.rb

README.textile

Tropo AudioFiles to Amazon S3 Server

Overview

This app provides a Web Service written with Sinatra to allow for files recorded on Tropo to be pushed from the Tropo cloud to Amazon S3. This application may be run on your own servers or easily deployed to Heroku.

Requirements

  • Ruby 1.8.6+
  • Gems
    • Sinatra 0.9.2+
  • Amazon S3 Account
  • Optional
    • Heroku Account
    • Gems
      • Heroku 1.1+

Installation

First, get the app:

git clone git://github.com/voxeo/tropo-audiofiles-to-s3.git

Copy the sample configuration file for Amazon S3:

cp ~/application-directory/config/amazon_s3.yml.sample ~/application-directory/config/amazon_s3.yml

Install the required gems:

sudo gem install sinatra aws-s3 heroku

Configuration

Configure your Amazon S3 Bucket, Access Key and Secret Access key here:

~/application-directory/config/amazon_s3.yml

Running on Your Own Server

To run the app you may do the following:

ruby ~/application-directory/tropo-audiofiles-to-s3.rb

Deploying to Heroku

It is possible to push this app to be hosted by Heroku. First you will need a Heroku account and the Heroku gem:

sudo gem install heroku

After you have cloned the repo from Github above, you may do the following:

cd ~/application-directory
heroku create my-app-name
git push heroku master

(More from Heroku here)

Thats it, you may now start using the URL http://my-app-name.heroku.com/post_audio_to_s3.