Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Having some Heroku deployment issues!

heroku trouble deployment

  • Please log in to reply
5 replies to this topic

#1 methodologist

methodologist

    Passenger

  • Members
  • 5 posts

Posted 08 February 2014 - 07:38 PM

In the past month or so I have been working on my new portfolio web app, it's fairly simple. It consists of a homepage, contact page, and 2 outbound links to my Twitter and Github page.. It appears that after I deploy my app the screen is just white. I have been able to successfully deploy apps in the past, but for some odd reason this time it isn't showing up correctly. My buddy thinks that it has something to do with my CSS, but I feel like it could be routing. I would appreciate any constructive input, thanks. -Chris

 

https://github.com/M...gist/furry-bear - The repository

 

2mexzc9.png



#2 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 08 February 2014 - 07:57 PM

What do your logs say is happening?

Also view the page source for the blank page and check the contents


Programming is just about problem solving!


#3 methodologist

methodologist

    Passenger

  • Members
  • 5 posts

Posted 08 February 2014 - 08:02 PM

What do your logs say is happening?

Also view the page source for the blank page and check the contents

$ heroku logs
←[36m2014-02-08T09:53:34.207246+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/finisher.rb:69:in `block in
 <module:Finisher>'
←[36m2014-02-08T09:53:34.207067+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `b
lock in load'
←[36m2014-02-08T09:53:34.207927+00:00 app[web.1]:←[0m   from /app/config.ru:in `
new'
←[36m2014-02-08T09:53:34.207927+00:00 app[web.1]:←[0m   from /app/config.ru:in `
<main>'
←[36m2014-02-08T09:53:34.207246+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/file_update_checker.rb:75
:in `call'
←[36m2014-02-08T09:53:34.207246+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/file_update_checker.rb:75
:in `execute'
←[36m2014-02-08T09:53:34.207246+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `e
ach'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands/server.rb:48:in `app'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top (requi
red)>'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from
_config'
←[36m2014-02-08T09:53:34.207754+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
←[36m2014-02-08T09:53:34.207754+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
←[36m2014-02-08T09:53:34.207754+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap'
←[36m2014-02-08T09:53:34.208504+00:00 app[web.1]:←[0m   from bin/rails:4:in `req
uire'
←[36m2014-02-08T09:53:34.208317+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands/server.rb:75:in `start'
←[36m2014-02-08T09:53:34.207754+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'
←[36m2014-02-08T09:53:34.208504+00:00 app[web.1]:←[0m   from bin/rails:4:in `<ma
in>'
←[36m2014-02-08T09:53:34.207754+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
←[36m2014-02-08T09:53:34.207927+00:00 app[web.1]:←[0m   from /app/config/environ
ment.rb:5:in `<top (required)>'
←[36m2014-02-08T09:53:34.208504+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (required)>'
←[36m2014-02-08T09:53:34.207754+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
←[36m2014-02-08T09:53:34.207927+00:00 app[web.1]:←[0m   from /app/config.ru:3:in
 `require'
←[36m2014-02-08T09:53:35.764392+00:00 heroku[web.1]:←[0m State changed from star
ting to crashed
←[36m2014-02-08T09:53:35.748225+00:00 heroku[web.1]:←[0m Process exited with sta
tus 1
←[36m2014-02-08T16:26:30.040998+00:00 heroku[web.1]:←[0m State changed from cras
hed to starting
←[36m2014-02-08T16:26:32.893378+00:00 heroku[web.1]:←[0m Starting process with c
ommand `bin/rails server -p 50323 -e $RAILS_ENV`
←[36m2014-02-08T16:26:36.252934+00:00 app[web.1]:←[0m => Booting WEBrick
←[36m2014-02-08T16:26:36.252934+00:00 app[web.1]:←[0m => Rails 4.0.2 application
 starting in production on http://0.0.0.0:50323
←[36m2014-02-08T16:26:36.252934+00:00 app[web.1]:←[0m => Run `rails server -h` f
or more startup options
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:64:in `in
itialize'
←[36m2014-02-08T16:26:36.252934+00:00 app[web.1]:←[0m => Ctrl-C to shutdown serv
er
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:116:in `n
ormalize_options!'
←[36m2014-02-08T16:26:36.252934+00:00 app[web.1]:←[0m Exiting
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1443:in `
new'
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m /app/vendor/bundle/ruby/1.
9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:229:in `default_
controller_and_action': missing :controller (ArgumentError)
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1422:in `
decomposed_match'
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:601:in `m
ap_method'
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1403:in `
block in match'
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1443:in `
add_route'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:562:in `g
et'
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1394:in `
each'
←[36m2014-02-08T16:26:36.253485+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1394:in `
match'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `l
oad'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/config/routes.
rb:4:in `block in <top (required)>'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:341:in
 `instance_exec'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:341:in
 `eval_block'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:319:in
 `draw'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `l
oad'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/config/routes.
rb:1:in `<top (required)>'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `b
lock in load_paths'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `l
oad_dependency'
←[36m2014-02-08T16:26:36.253663+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `b
lock in load'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `l
oad_paths'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `e
ach'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/file_update_checker.rb:75
:in `execute'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/activesupport-4.0.2/lib/active_support/file_update_checker.rb:75
:in `call'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:27:in `u
pdater'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:16:in `r
eload!'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:26:in `b
lock in updater'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_
component'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_in
itializers'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:6:in `ex
ecute_if_updated'
←[36m2014-02-08T16:26:36.253818+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application/finisher.rb:69:in `block in
 <module:Finisher>'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:180:in `each'
←[36m2014-02-08T16:26:36.254413+00:00 app[web.1]:←[0m   from /app/vendor/ruby-1.
9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializer
s'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_m
issing'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/config/environ
ment.rb:5:in `<top (required)>'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/config.ru:3:in
 `require'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/config.ru:3:in
 `block in <main>'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from
_config'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/config.ru:in `
new'
←[36m2014-02-08T16:26:36.254762+00:00 app[web.1]:←[0m   from /app/config.ru:in `
<main>'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands/server.rb:48:in `app'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands/server.rb:75:in `start'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top (requi
red)>'
←[36m2014-02-08T16:26:36.255312+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (required)>'
←[36m2014-02-08T16:26:36.255312+00:00 app[web.1]:←[0m   from bin/rails:4:in `req
uire'
←[36m2014-02-08T16:26:36.255312+00:00 app[web.1]:←[0m   from bin/rails:4:in `<ma
in>'
←[36m2014-02-08T16:26:36.255139+00:00 app[web.1]:←[0m   from /app/vendor/bundle/
ruby/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap'
←[36m2014-02-08T16:26:37.324294+00:00 heroku[web.1]:←[0m Process exited with sta
tus 1


#4 james

james

    Guard

  • Moderators
  • 221 posts
  • LocationLeeds, U.K.

Posted 09 February 2014 - 01:47 AM

I  meant your production log so we could see what requests were coming in and what actions were being called


Programming is just about problem solving!


#5 Ohm

Ohm

    Guard

  • Members
  • 179 posts
  • LocationCopenhagen

Posted 09 February 2014 - 09:44 PM

When you had the project running on your own machine, did you ever try restarting the server?

 

Looking at the Github repo, you have a syntax error in the contacts_controller.rb. It's suppose to be

render :index

Also, in the routes file, what you want is

resources :contacts, only: [:index, :new]

which tells the route controller that you have resources contacts, and you want it to generate only index and new routes. Normally this will also generate create, edit, destroy and update for the whole CRUD experience.


Blog: http://ohm.sh | Twitter: madsohm


#6 methodologist

methodologist

    Passenger

  • Members
  • 5 posts

Posted 14 February 2014 - 07:43 AM

When you had the project running on your own machine, did you ever try restarting the server?

 

Looking at the Github repo, you have a syntax error in the contacts_controller.rb. It's suppose to be

render :index

Also, in the routes file, what you want is

resources :contacts, only: [:index, :new]

which tells the route controller that you have resources contacts, and you want it to generate only index and new routes. Normally this will also generate create, edit, destroy and update for the whole CRUD experience.

 

ended up trashing and starting fresh, it's looking better than ever.. but i'll research what i did in conjunction to what you said to learn, thanks friend.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users