A Simple Search Interface for Microsoft's Bing using Sinatra and binger.
$ git clone git://github.com/thinkphp/sinatra-bing.git
$ cd sinatra-bing
$ rackup #generated the file Gemfile.lock
require 'rubygems'
require 'bundler'
Bundler.require
require './app.rb'
run MyApp
source "https://rubygems.org"
gem 'sinatra'
gem 'binger'
Open a browser and go to: http://localhost:9292. Cheers!
- Basic Ruby knowledge
- Basic Git knowledge
- Your app must run on Ruby 1.9.2
- Your app must use Bundle
- A Heroku user account
- Install the Heroku Toolbelt
$ cd myApp
$ git init
$ git add .
$ git commit -m 'first commit'
$ heroku create
$ git push heroku master
$ heroku ps
$ heroku open
If you're deploying a straight Rack app here's a Procfile that can execute your config.ru
web: bundle exec rackup config.ru -p $PORT
MIT