Heroku: Hosting gratuito para aplicaciones Sinatra

February 6th, 2010 Posted in Uncategorized

Antes se registran en Heroku, acá encuentran como hacerlo

$ sudo gem install heroku
$ mkdir myapp
$ cd myapp
$ vim myapp.rb


require "rubygems"
require "sinatra"

get '/' do
"Sinatra has taken the stage"
end

$ vim config.ru


require 'myapp'

run Sinatra::Application

$ git init
$ git add .
$ git commit -m “My first commit”
$ heroku create
$ git push heroku master

P.D: Escribo esto para que no se me olvide luego :P

Post a Comment