Build a Twilio App in 5 Minutes on Heroku

January 1st, 2011

I just saw this 5 minute video and thought that people might find it interesting in the context of the learning Ruby series. It’s pretty slick demo of using Twilio’s HTTP based call-handling model, and Heroku’s provisionless hosting platform, to build and deploy an app in minutes.

Get Started!


How to create a Twilio app on Heroku from Morten Bagai on Vimeo.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Categories: CloudSpokes, Heroku, Ruby, Twilio

Leave a comment

Comments Feed7 Comments

  1. Pete, Fifedog, Fife

    Hey Jeff,
    A bit of a shameless plug here, however the twilio is very cool. Matter of fact I’m about ready to release a Twilio-salesforce.com application this month, Jan 2011. The application takes the inbound number, creates a lead, attaches it to the campaign in salesforce. Also let’s you get numbers all from within salesforce. Here’s a demo if you don’t mind ;)
    http://screencast.com/t/AFTmUdei8n

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  2. Pointing fingers

    Spelling mistake in title, should be Heroku :)

    Thx for sharing the vid!

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  3. Jeff Douglas

    THANKS!!!

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  4. Jeff Douglas

    @Pete, that screencast URL looks bad. I get basically a 404.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  5. Ajay

    I did everything as described and was able to resolve most of the errors that came first but when I test my Twilio app, I get an error. Backtracing it, when I check my Heroku logs, I see the following:

    C:\AJ\twilioapp>heroku logs
    /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_orig
    inal_require’: no such file to load — sinatra (LoadError)
    from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31
    :in `require’
    from ./app.rb:1
    from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31
    :in `gem_original_require’
    from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31
    :in `require’
    from config.ru:1

    I did a quick search and tried running a ‘Hello World’ sinatra app and it ran perfectly. Not sure why my Twilio is not working though.

    Would you be kind enough to advise?

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  6. Martin Baker

    @Ajay

    The Hello World app is broken in two ways. At the top of config.ru, add

    $LOAD_PATH.unshift(‘.’)

    You also need to create a file called “Gemfile” in the root of the repo that contains the following:

    source :rubyforge
    gem ‘sinatra’, ’1.1.0′
    gem ‘thin’, ’1.2.7′
    gem ‘builder’, ’3.0.0′

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)
  7. Martin Baker

    Re: above comment – unfortunately, the blog decide to make smart quotes. Replace all smart quotes with regular single quotes.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

Leave a comment

Feed

http://blog.jeffdouglas.com / Build a Twilio App in 5 Minutes on Heroku