I'm having some trouble deploying my app to Heroku. I am using Ruby and Sinatra, no Rails. Every time I try and navigate to a page, it serves up the error page, but the logs show no errors or anything like that. I'm not entirely sure what I'm doing incorrectly, but here are my logs:
2013-01-25T20:30:55+00:00 heroku[web.1]: State changed from up to starting
2013-01-25T20:30:55+00:00 heroku[slugc]: Slug compilation finished
2013-01-25T20:30:57+00:00 heroku[web.1]: Starting process with command `bundle exec ruby server.rb -p 17590`
2013-01-25T20:30:58+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-01-25T20:30:59+00:00 app[web.1]: == Sinatra/1.3.3 has taken the stage on 17590 for production with backup from Thin
2013-01-25T20:30:59+00:00 app[web.1]:
2013-01-25T20:30:59+00:00 app[web.1]: == Sinatra has ended his set (crowd applauds)
2013-01-25T20:30:59+00:00 app[web.1]: >> Thin web server (v1.5.0 codename Knife)
2013-01-25T20:30:59+00:00 app[web.1]: >> Maximum connections set to 1024
2013-01-25T20:30:59+00:00 app[web.1]: >> Listening on 0.0.0.0:16214, CTRL+C to stop
2013-01-25T20:30:59+00:00 app[web.1]: You are at the root!
2013-01-25T20:30:59+00:00 app[web.1]: You are at the root!
2013-01-25T20:30:59+00:00 app[web.1]: Serving up a page!
2013-01-25T20:30:59+00:00 app[web.1]: Not enough concerts
2013-01-25T20:30:59+00:00 app[web.1]: >> Stopping ...
2013-01-25T20:31:00+00:00 heroku[web.1]: Process exited with status 0
2013-01-25T20:31:01+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:01] "GET / HTTP/1.1" 302 - 0.0041
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/ host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=13ms connect=42ms service=88ms status=302 bytes=0
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /page/1 HTTP/1.1" 302 - 0.1319
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/page/1 host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=0ms connect=32ms service=136ms status=302 bytes=0
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /error HTTP/1.1" 200 3879 0.0030
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/error host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=0ms connect=7ms service=6ms status=200 bytes=3879
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/assets/css/bootstrap.css host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=0ms connect=1ms service=12ms status=200 bytes=124223
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /assets/css/bootstrap.css HTTP/1.1" 200 124223 0.0035
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/assets/js/custom.js host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=0ms connect=1ms service=22ms status=200 bytes=1593
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /assets/js/custom.js HTTP/1.1" 200 1593 0.0007
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /assets/css/bootstrap-responsive.css HTTP/1.1" 200 21751 0.0007
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/assets/css/bootstrap-responsive.css host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=5ms connect=19ms service=12ms status=200 bytes=21751
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /assets/css/site-specific.css HTTP/1.1" 200 1586 0.0007
2013-01-25T20:31:02+00:00 app[web.1]: 140.193.202.230 - - [25/Jan/2013 20:31:02] "GET /assets/js/bootstrap.js HTTP/1.1" 200 58516 0.0008
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/assets/css/site-specific.css host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=0ms connect=8ms service=8ms status=200 bytes=1586
2013-01-25T20:31:02+00:00 heroku[router]: at=info method=GET path=/assets/js/bootstrap.js host=concerto.herokuapp.com fwd=140.193.202.230 dyno=web.1 queue=0 wait=10ms connect=41ms service=23ms status=200 bytes=58516
In my Sinatra app, I have some print statements. The root prints, "You are at the root!", and then redirects to /page/1, which then says, "Serving up a page!". I'm not sure why those methods are called when it's starting up, maybe that's part of the problem.