Tried deploying on Heroku, didn't work and now local server not working
:( My app was working locally and then I followed the directions to push
onto Heroku.
I got Heroku's super descriptive and comforting error message: "We're
sorry, but something went wrong."
In other words, now my app doesn't work locally or on heroku... would love
to solve this with your help. Thank you.
So I tried some things (in this order):
I took out gem 'sqlite3' and replaced it with gem 'pg'
in my gemfile, included ruby '2.0.0'
heroku rake db:migrate
My heroku logs:
State changed from starting to complete
2013-08-20T03:29:43.118968+00:00 heroku[run.2135]: Error R99 (Platform
error) -> Failed to launch the dyno within 10 seconds
2013-08-20T03:29:43.119187+00:00 heroku[run.2135]: Stopping process with
SIGKILL
2013-08-20T03:31:00.784270+00:00 heroku[router]: at=info method=GET path=/
host=shrouded-citadel-6554.herokuapp.com fwd="107.193.213.240" dyno=web.1
connect=2ms service=24ms status=500 bytes=643
2013-08-20T03:31:00.800238+00:00 app[web.1]:
2013-08-20T03:31:00.800238+00:00 app[web.1]: Started GET "/" for
107.193.213.240 at 2013-08-20 03:31:00 +0000
2013-08-20T03:31:00.800238+00:00 app[web.1]:
2013-08-20T03:31:00.802209+00:00 app[web.1]: Processing by
CollectionsController#index as HTML
2013-08-20T03:31:00.808688+00:00 app[web.1]: Completed 500 Internal Server
Error in 6ms
2013-08-20T03:31:00.810234+00:00 app[web.1]:
2013-08-20T03:31:00.810234+00:00 app[web.1]: WHERE a.attrelid
= '"collections"'::regclass
2013-08-20T03:31:00.810234+00:00 app[web.1]:
^
2013-08-20T03:31:00.810234+00:00 app[web.1]: LINE 4: WHERE
a.attrelid = '"collections"'::regclass
2013-08-20T03:31:00.810234+00:00 app[web.1]: : SELECT
a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
2013-08-20T03:31:00.810234+00:00 app[web.1]: FROM
pg_attribute a LEFT JOIN pg_attrdef d
2013-08-20T03:31:00.810234+00:00 app[web.1]:
ActiveRecord::StatementInvalid (PG::Error: ERROR: relation "collections"
does not exist
2013-08-20T03:31:00.810234+00:00 app[web.1]: ORDER BY a.attnum
2013-08-20T03:31:00.810234+00:00 app[web.1]: ON a.attrelid
= d.adrelid AND a.attnum = d.adnum
2013-08-20T03:31:00.810234+00:00 app[web.1]: AND a.attnum >
0 AND NOT a.attisdropped
2013-08-20T03:31:00.810392+00:00 app[web.1]: ):
2013-08-20T03:31:00.810392+00:00 app[web.1]:
app/controllers/collections_controller.rb:4:in `index'
2013-08-20T03:31:00.810392+00:00 app[web.1]:
2013-08-20T03:31:00.810392+00:00 app[web.1]:
2013-08-20T03:31:01.224316+00:00 heroku[router]: at=info method=GET
path=/favicon.ico host=shrouded-citadel-6554.herokuapp.com
fwd="107.193.213.240" dyno=web.1 connect=3ms service=8ms status=200
bytes=0
No comments:
Post a Comment