Created
May 23, 2011 20:25
-
-
Save gnrlbzik/987522 to your computer and use it in GitHub Desktop.
Sinatra App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Project Folder Stracture | |
# =============================== | |
/mirteam-site/config.ru | |
/mirteam-site/favicon.ico | |
/mirteam-site/mirteam-sinatra-app.rb | |
/mirteam-site/README.markdown | |
# config.ru | |
# =============================== | |
require 'mirteam-sinatra-app' | |
## There is no need to set directories here anymore; | |
## Just run the application | |
run Sinatra::Application | |
# mirteam-sinatra-app.rb | |
# =============================== | |
# You'll need to require these if you | |
# want to develop while running with ruby. | |
# The config/rackup.ru requires these as well | |
# for it's own reasons. | |
# | |
# $ ruby heroku-sinatra-app.rb | |
# | |
require 'rubygems' | |
require 'sinatra' | |
configure :production do | |
# Configure stuff here you'll want to | |
# only be run at Heroku at boot | |
# TIP: You can get you database information | |
# from ENV['DATABASE_URI'] (see /env route below) | |
end | |
# Quick test | |
get '/' do | |
"Congradulations! | |
You're running a Sinatra application on Heroku!" | |
end | |
# Test at <appname>.heroku.com | |
# You can see all your app specific information this way. | |
# IMPORTANT! This is a very bad thing to do for a production | |
# application with sensitive information | |
# get '/env' do | |
# ENV.inspect | |
# end | |
# README.markdown | |
# =============================== | |
# MirTeam (Airsoft Team) website documentation. | |
# Heroku Log | |
# =============================== | |
2011-05-23T13:39:48-07:00 heroku[slugc]: Slug compilation started | |
2011-05-23T13:39:50-07:00 heroku[api]: Deploy 83ce6ae by heroku.com@bzik.net | |
2011-05-23T13:39:50-07:00 heroku[api]: Release v10 created by heroku.com@bzik.net | |
2011-05-23T13:39:50-07:00 heroku[web.1]: State changed from crashed to created | |
2011-05-23T13:39:50-07:00 heroku[web.1]: State changed from created to starting | |
2011-05-23T13:39:50-07:00 heroku[slugc]: Slug compilation finished | |
2011-05-23T20:39:51+00:00 heroku[web.1]: Starting process with command: `thin -p 54631 -e production -R /home/heroku_rack/heroku.ru start` | |
2011-05-23T20:39:52+00:00 app[web.1]: <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- mirteam-sinatra-app (LoadError) | |
2011-05-23T20:39:52+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:in `require' | |
2011-05-23T20:39:52+00:00 app[web.1]: from config.ru:1:in `block (3 levels) in <main>' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `eval' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:63:in `new' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:63:in `map' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `new' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `block in <main>' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `new' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `<main>' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `load' | |
2011-05-23T20:39:52+00:00 app[web.1]: from /usr/ruby1.9.2/bin/thin:19:in `<main>' | |
2011-05-23T20:39:52+00:00 heroku[web.1]: Process exited | |
2011-05-23T13:39:53-07:00 heroku[web.1]: State changed from starting to crashed | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment