Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Web service application for receiving Tropo recordings from the cloud and pushing them to Amazon S3

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 log
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.textile
Octocat-spinner-32 config.ru
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.