see this https://help.heroku.com/tickets/89264
basically, I updated my config/environments/production.rb file and followed
this advice https://devcenter.heroku.com/articles/rails-asset-pipeline#compiling-assets-locally, but it still isn't working.
i just changed
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )
to
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
config.assets.precompile += %w( home.css )
and then did the following:
~/collegeanswerz >> RAILS_ENV=production bundle exec rake assets:precompile
/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p327/bin/ruby /Users/adamzerner/.rvm/gems/ruby-1.9.3- p327#rails3tutorial2ndEd/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
~/collegeanswerz >> git add public/assets
~/collegeanswerz >> git commit -m "vendor compiled assets 2"
[master 23fa523] vendor compiled assets 2
9 files changed, 4 insertions(+)
create mode 100644 public/assets/home-73d942132cfdcc305dabf385494f8201.css
create mode 100644 public/assets/home-73d942132cfdcc305dabf385494f8201.css.gz
create mode 100644 public/assets/home.css
create mode 100644 public/assets/home.css.gz
~/collegeanswerz >> git push heroku master
Counting objects: 20, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 2.30 KiB, done.
Total 12 (delta 9), reused 0 (delta 0)
-----> Removing .DS_Store files
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.3)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.2)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.5.3)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using coffee-script-source (1.6.2)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using coffee-rails (3.2.2)
Using dynamic_form (1.1.4)
Using jquery-rails (2.2.1)
Using pg (0.12.2)
Using bundler (1.3.2)
Using rails (3.2.13)
Using sass (3.2.9)
Using sass-rails (3.2.6)
Using uglifier (2.1.0)
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Detected manifest.yml, assuming assets were compiled locally
-----> WARNINGS:
you have not declared a Ruby version in your Gemfile.
To set your Ruby version add this line to your Gemfile:"
ruby '1.9.3'"
# See https://devcenter.heroku.com/articles/ruby-versions for more information."
-----> Rails plugin injection
Injecting rails_log_stdout
Injecting rails3_serve_static_assets
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby/Rails -> console, rake, web, worker
-----> Compiled slug size: 20.1MB
-----> Launching... done, v9
http://fast-reaches-9399.herokuapp.com deployed to Heroku
To git#heroku.com:fast-reaches-9399.git
28772c1..23fa523 master -> master
~/collegeanswerz >> heroku open
Opening fast-reaches-9399... done
but I still got the same 500 error.
can anyone help me with this? I am eager to deploy and I can't figure out what I'm doing wrong. I read through https://devcenter.heroku.com/articles/rails-asset-pipeline#compiling-assets-locally and http://guides.rubyonrails.org/asset_pipeline.html, but I still don't know what's wrong. any help would be appreciated. thanks.
EDIT: I only added home.css to config/environments/production.rb. I have other css files and javascript files though. Do I need to add them along with home.css? I'm confused as to what I need to add to this file and what I don't.
Heroku Logs:
~/collegeanswerz >> heroku logs
2013-06-21T18:09:38.400164+00:00 app[web.1]: => Call with -d to detach
2013-06-21T18:09:38.400164+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-06-21T18:09:38.400164+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-06-21T18:09:41.816038+00:00 app[web.1]: [2013-06-21 18:09:41] INFO WEBrick::HTTPServer#start: pid=2 port=37598
2013-06-21T18:09:41.806086+00:00 app[web.1]: [2013-06-21 18:09:41] INFO WEBrick 1.3.1
2013-06-21T18:09:41.806250+00:00 app[web.1]: [2013-06-21 18:09:41] INFO ruby 1.9.3 (2013-05-15) [x86_64-linux]
2013-06-21T18:09:41.846306+00:00 heroku[web.1]: State changed from starting to up
2013-06-21T18:09:42.983092+00:00 app[web.1]: Started GET "/" for 150.212.44.53 at 2013-06-21 18:09:42 +0000
2013-06-21T18:09:43.796440+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2013-06-21T18:09:43.918982+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (26.0ms)
2013-06-21T18:09:43.926737+00:00 app[web.1]: app/views/static_pages/home.html.erb:1:in `_app_views_static_pages_home_html_erb___725405358529282062_26831120'
2013-06-21T18:09:43.919413+00:00 app[web.1]: Completed 500 Internal Server Error in 121ms
2013-06-21T18:09:43.926737+00:00 app[web.1]:
2013-06-21T18:09:43.926737+00:00 app[web.1]: ActionView::Template::Error (home.css isn't precompiled):
2013-06-21T18:09:43.926737+00:00 app[web.1]: 1: <%= stylesheet_link_tag "home", :media => "all" %>
2013-06-21T18:09:43.926737+00:00 app[web.1]: 2: <%= javascript_include_tag :application %>
2013-06-21T18:09:43.926737+00:00 app[web.1]: 3: <% provide(:title, 'CollegeANSWERZ') %>
2013-06-21T18:09:43.926737+00:00 app[web.1]: 4:
2013-06-21T18:09:43.926737+00:00 app[web.1]:
2013-06-21T18:09:43.926737+00:00 app[web.1]:
2013-06-21T18:09:43.930798+00:00 heroku[router]: at=info method=GET path=/ host=fast-reaches-9399.herokuapp.com fwd="150.212.44.53" dyno=web.1 connect=9ms service=997ms status=500 bytes=643
2013-06-21T18:10:43.120112+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms
2013-06-21T18:10:43.119811+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (0.8ms)
2013-06-21T18:10:43.109481+00:00 app[web.1]: Started GET "/" for 130.49.162.173 at 2013-06-21 18:10:43 +0000
2013-06-21T18:10:43.115024+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2013-06-21T18:10:43.163822+00:00 heroku[router]: at=info method=GET path=/ host=fast-reaches-9399.herokuapp.com fwd="130.49.162.173" dyno=web.1 connect=1ms service=65ms status=500 bytes=643
2013-06-21T18:10:43.159816+00:00 app[web.1]: 4:
2013-06-21T18:10:43.159816+00:00 app[web.1]: app/views/static_pages/home.html.erb:1:in `_app_views_static_pages_home_html_erb___725405358529282062_26831120'
2013-06-21T18:10:43.159816+00:00 app[web.1]: 3: <% provide(:title, 'CollegeANSWERZ') %>
2013-06-21T18:10:43.159816+00:00 app[web.1]: ActionView::Template::Error (home.css isn't precompiled):
2013-06-21T18:10:43.159816+00:00 app[web.1]:
2013-06-21T18:10:43.159816+00:00 app[web.1]:
2013-06-21T18:10:43.159816+00:00 app[web.1]: 1: <%= stylesheet_link_tag "home", :media => "all" %>
2013-06-21T18:10:43.159816+00:00 app[web.1]:
2013-06-21T18:10:43.159816+00:00 app[web.1]: 2: <%= javascript_include_tag :application %>
2013-06-21T18:10:43.284647+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=fast-reaches-9399.herokuapp.com fwd="130.49.162.173" dyno=web.1 connect=2ms service=14ms status=200 bytes=0
2013-06-21T18:31:38.978118+00:00 app[web.1]: Started GET "/" for 150.212.67.168 at 2013-06-21 18:31:38 +0000
2013-06-21T18:31:38.988162+00:00 app[web.1]: ActionView::Template::Error (home.css isn't precompiled):
2013-06-21T18:31:38.981955+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2013-06-21T18:31:38.983438+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (0.7ms)
2013-06-21T18:31:38.984407+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms
2013-06-21T18:31:38.988162+00:00 app[web.1]:
2013-06-21T18:31:38.988162+00:00 app[web.1]: 1: <%= stylesheet_link_tag "home", :media => "all" %>
2013-06-21T18:31:38.988162+00:00 app[web.1]: 2: <%= javascript_include_tag :application %>
2013-06-21T18:31:38.976788+00:00 heroku[router]: at=info method=GET path=/ host=fast-reaches-9399.herokuapp.com fwd="150.212.67.168" dyno=web.1 connect=2ms service=23ms status=500 bytes=643
2013-06-21T18:31:38.988162+00:00 app[web.1]: 3: <% provide(:title, 'CollegeANSWERZ') %>
2013-06-21T18:31:38.988162+00:00 app[web.1]: 4:
2013-06-21T18:31:38.988162+00:00 app[web.1]: app/views/static_pages/home.html.erb:1:in `_app_views_static_pages_home_html_erb___725405358529282062_26831120'
2013-06-21T18:31:38.988162+00:00 app[web.1]:
2013-06-21T18:31:38.988162+00:00 app[web.1]:
2013-06-21T18:31:39.272322+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=fast-reaches-9399.herokuapp.com fwd="150.212.67.168" dyno=web.1 connect=1ms service=14ms status=200 bytes=0
2013-06-21T19:34:46.968884+00:00 heroku[web.1]: Idling
2013-06-21T19:34:51.384909+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-06-21T19:34:52.554631+00:00 app[web.1]: [2013-06-21 19:34:52] ERROR SignalException: SIGTERM
2013-06-21T19:34:52.554631+00:00 app[web.1]: /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/webrick/server.rb:98:in `select'
2013-06-21T19:35:01.380745+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-06-21T19:35:01.381015+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-06-21T19:35:04.641711+00:00 heroku[web.1]: State changed from up to down
2013-06-21T19:35:04.615493+00:00 heroku[web.1]: Process exited with status 137
2013-06-22T01:19:15.580026+00:00 heroku[api]: Deploy 23fa523 by arz21#pitt.edu
2013-06-22T01:19:15.610236+00:00 heroku[api]
: Release v9 created by arz21#pitt.edu
2013-06-22T01:19:15.645481+00:00 heroku[api]: Deploy 23fa523 by arz21#pitt.edu
2013-06-22T01:19:15.812011+00:00 heroku[web.1]: State changed from down to starting
2013-06-22T01:19:19.358919+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 16312`
2013-06-22T01:19:24.227544+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-06-22T01:19:24.227544+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-06-22T01:19:26.887652+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-06-22T01:19:26.887652+00:00 app[web.1]: => Booting WEBrick
2013-06-22T01:19:26.887652+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:16312
2013-06-22T01:19:26.887652+00:00 app[web.1]: => Call with -d to detach
2013-06-22T01:19:26.887652+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-06-22T01:19:27.090788+00:00 app[web.1]: [2013-06-22 01:19:27] INFO WEBrick 1.3.1
2013-06-22T01:19:27.091334+00:00 app[web.1]: [2013-06-22 01:19:27] INFO WEBrick::HTTPServer#start: pid=2 port=16312
2013-06-22T01:19:27.090788+00:00 app[web.1]: [2013-06-22 01:19:27] INFO ruby 1.9.3 (2013-05-15) [x86_64-linux]
2013-06-22T01:19:27.339684+00:00 heroku[web.1]: State changed from starting to up
2013-06-22T01:19:30.066268+00:00 app[web.1]: Started GET "/" for 24.131.255.163 at 2013-06-22 01:19:30 +0000
2013-06-22T01:19:30.468648+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2013-06-22T01:19:30.537004+00:00 heroku[router]: at=info method=GET path=/ host=fast-reaches-9399.herokuapp.com fwd="24.131.255.163" dyno=web.1 connect=1ms service=488ms status=500 bytes=643
2013-06-22T01:19:30.525930+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (8.3ms)
2013-06-22T01:19:30.537856+00:00 app[web.1]:
2013-06-22T01:19:30.537856+00:00 app[web.1]: ActionView::Template::Error (layout.css isn't precompiled):
2013-06-22T01:19:30.537856+00:00 app[web.1]: 2: <html>
2013-06-22T01:19:30.537856+00:00 app[web.1]: 7: <%= csrf_meta_tags %>
2013-06-22T01:19:30.532648+00:00 app[web.1]: Completed 500 Internal Server Error in 64ms
2013-06-22T01:19:30.537856+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___1612393333745609223_32479780'
2013-06-22T01:19:30.538131+00:00 app[web.1]:
2013-06-22T01:19:30.537856+00:00 app[web.1]: 8: </head>
2013-06-22T01:19:30.538131+00:00 app[web.1]:
2013-06-22T01:19:30.537856+00:00 app[web.1]: 3: <head>
2013-06-22T01:19:30.537856+00:00 app[web.1]: 4: <title><%= yield(:title) %></title>
2013-06-22T01:19:30.537856+00:00 app[web.1]: 5: <%= stylesheet_link_tag "layout", :media => "all" %>
2013-06-22T01:19:30.537856+00:00 app[web.1]: 6: <%= javascript_include_tag "application" %>
2013-06-22T01:19:31.142918+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=fast-reaches-9399.herokuapp.com fwd="24.131.255.163" dyno=web.1 connect=1ms service=48ms status=200 bytes=0
2013-06-22T02:25:29.121546+00:00 heroku[web.1]: Idling
2013-06-22T02:25:34.186899+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-06-22T02:25:35.206762+00:00 app[web.1]: /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/webrick/server.rb:98:in `select'
2013-06-22T02:25:35.206762+00:00 app[web.1]: [2013-06-22 02:25:35] ERROR SignalException: SIGTERM
2013-06-22T02:25:43.540073+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-06-22T02:25:43.540320+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-06-22T02:25:46.353635+00:00 heroku[web.1]: State changed from up to down
2013-06-22T02:25:46.337936+00:00 heroku[web.1]: Process exited with status 137
~/collegeanswerz >>
Now that I see your logs I did some looking around and you are not the only person to experience this. Try removing the locally compiled assets with: git rm -r public/assets then push to heroku. Leave the change you made to your production.rb.
I saw your post in StackOverflow and it's cool! I love seeing people help each other in the community.
Do you remember what caused your problem last time? It was:
ActionView::Template::Error (home.css isn't precompiled):
And you needed to add home.css to config/environments/production.rb. You need to tell production.rb that you need home.css. You need to tell that you need other css files than application.css.
Now, what error you see in your log after the deploy?
ActionView::Template::Error (layout.css isn't precompiled):
Figured out? Now you need to add layout.css as well. You can simply add like this:
%w( home.css layout.css )
Again, you need to add every css you need other than application.css to config/environments/production.rb. If you have some js files that you need to add other than application.js, you also need to add to config/environments/production.rb. I can see there are a lot of css files that you need to add there in your app(e.g. college_pages, essays, about_college, etc for css, about_college for js).
Reading your log is the first step for debugging, programming. Log always tells you something (if there is no logs, I wouldn't be able to point out your problem!). I'm sorry that I didn't tell you how to watch your logs (seems like you didn't know about it).
Here is the usage of reading your log:
Usage: heroku logs
display recent log output
-n, --num NUM # the number of lines to display
-p, --ps PS # only display logs from the given process
-s, --source SOURCE # only display logs from the given source
-t, --tail # continually stream logs
Example:
$ heroku logs
2012-01-01T12:00:00+00:00 heroku[api]: Config add EXAMPLE by email#example.com
2012-01-01T12:00:01+00:00 heroku[api]: Release v1 created by email#example.com
You can do something like heroku logs -n 100 to see your last 100 lines of logs.
Hope this helps,
Keiko
Thanks so much for your help! I know you're kinda going beyond your responsibility and I appreciate it.
I added all my other css and js files to production.rb and I deployed successfully! The reason I was confused was that I didn't realize that I had to include all of them in production.rb. I thought for some reason that application.css and application.js somehow made it so I didn't have to, and I thought that home.css was an exception for some reason.
Related
I'm extremely new to coding in general - so be gentle.
I'm on Chapter 3, 3.1, in the very end after creating the static_pages, home and help, by entering $ rails generate controller StaticPages home help, I cannot then navigate to the page without getting a corresponding 500 Runtime Error, which in turn Killed the running server.
The "hello" app works just fine and I've had no issues up until now.
Notes: I am following the tutorial on a Windows 7 x64, but I'm taking Hartl's recommendation to use the Cloud IDE with Git, Bitbucket, and Heroku. I did have to run Rails 4.2.1 instead of Rails 4.2.2 however due to an issue when first starting out.
What could I be doing wrong? Please let me know if I need to include any more information, this is all very new to me.
EDIT:
I checked my files again what #Rich Peck stated and theyre all the same except the Routes.rb file which only has this (which was generated by the system, I'm also omitting all # comments):
Rails.application.routes.draw do
get 'static_pages/home'
get 'static_pages/help'
root 'application#hello'
end
Ive also pulled my logs as stated by a few comments, and this is the result of the last 100 lines:
2015-10-11T21:25:49.589384+00:00 app[web.1]: => Runrails server -hfor more startup options
2015-10-11T21:25:49.589385+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-10-11T21:25:49.589386+00:00 app[web.1]: Started GET "/" for 208.115.151.20 at 2015-10-11 21:25:49 +0000
2015-10-11T21:25:49.646987+00:00 app[web.1]: Processing by ApplicationController#hello as HTML
2015-10-11T21:25:49.656139+00:00 app[web.1]: Completed 200 OK in 9ms (Views: 0.8ms | ActiveRecord: 0.0ms)
2015-10-11T21:25:49.655832+00:00 app[web.1]: Rendered text template (0.0ms)
2015-10-11T21:25:49.786454+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-journey-1439.herokuapp.com request_id=2474855b-e5c5-4db8-8b2a-83f0d6095d2d fwd="208.115.151.20" dyno=web.1 connect=0ms service=3ms status=200 bytes=228
2015-10-11T21:25:49.658965+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-journey-1439.herokuapp.com request_id=e85687fc-6820-42c1-b389-4a6d8e0e2ffa fwd="208.115.151.20" dyno=web.1 connect=0ms service=73ms status=304 bytes=397
2015-10-11T21:59:04.638018+00:00 heroku[web.1]: Idling
2015-10-11T21:59:04.638730+00:00 heroku[web.1]: State changed from up to down
2015-10-11T21:59:04.639573+00:00 heroku[web.1]: State changed from down to starting
2015-10-11T21:59:06.575098+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2015-10-11T21:59:06.991420+00:00 app[web.1]: [2015-10-11 21:59:06] FATAL SignalException: SIGTERM
2015-10-11T21:59:06.991427+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:inselect'
2015-10-11T21:59:06.991429+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in block in start'
2015-10-11T21:59:06.991431+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:instart'
2015-10-11T21:59:06.991432+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in start'
2015-10-11T21:59:06.991433+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:34:inrun'
2015-10-11T21:59:06.991434+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:286:in start'
2015-10-11T21:59:06.991436+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:instart'
2015-10-11T21:59:06.991438+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in block in server'
2015-10-11T21:59:06.991440+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:intap'
2015-10-11T21:59:06.991441+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in server'
2015-10-11T21:59:06.991442+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:inrun_command!'
2015-10-11T21:59:06.991443+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in <top (required)>'
2015-10-11T21:59:06.991445+00:00 app[web.1]: bin/rails:8:inrequire'
2015-10-11T21:59:06.991446+00:00 app[web.1]: bin/rails:8:in <main>'
2015-10-11T21:59:06.991478+00:00 app[web.1]: [2015-10-11 21:59:06] INFO WEBrick::HTTPServer#start done.
2015-10-11T21:59:06.991452+00:00 app[web.1]: [2015-10-11 21:59:06] INFO going to shutdown ...
2015-10-11T21:59:06.991498+00:00 app[web.1]: Exiting
2015-10-11T21:59:07.767999+00:00 heroku[web.1]: Process exited with status 143
2015-10-11T21:59:08.554265+00:00 heroku[web.1]: Starting process with commandbin/rails server -p 21794 -e production
2015-10-11T21:59:12.579369+00:00 app[web.1]: [2015-10-11 21:59:12] INFO WEBrick 1.3.1
2015-10-11T21:59:12.579406+00:00 app[web.1]: [2015-10-11 21:59:12] INFO ruby 2.0.0 (2015-04-13) [x86_64-linux]
2015-10-11T21:59:12.579784+00:00 app[web.1]: [2015-10-11 21:59:12] INFO WEBrick::HTTPServer#start: pid=3 port=21794
2015-10-11T21:59:13.087410+00:00 heroku[web.1]: State changed from starting to up
2015-10-11T22:34:07.204262+00:00 heroku[web.1]: Idling
2015-10-11T22:34:07.204981+00:00 heroku[web.1]: State changed from up to down
2015-10-11T22:34:10.871115+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2015-10-11T22:34:11.813473+00:00 app[web.1]: [2015-10-11 22:34:11] FATAL SignalException: SIGTERM
2015-10-11T22:34:11.813479+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:inselect'
2015-10-11T22:34:11.813483+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in block in start'
2015-10-11T22:34:11.813484+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:instart'
2015-10-11T22:34:11.813486+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in start'
2015-10-11T22:34:11.813487+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:34:inrun'
2015-10-11T22:34:11.813489+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:286:in start'
2015-10-11T22:34:11.813490+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:instart'
2015-10-11T22:34:11.813492+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:in block in server'
2015-10-11T22:34:11.813493+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:intap'
2015-10-11T22:34:11.813495+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in server'
2015-10-11T22:34:11.813497+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:inrun_command!'
2015-10-11T22:34:11.813498+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in <top (required)>'
2015-10-11T22:34:11.813500+00:00 app[web.1]: bin/rails:8:inrequire'
2015-10-11T22:34:11.813501+00:00 app[web.1]: bin/rails:8:in <main>'
2015-10-11T22:34:11.813508+00:00 app[web.1]: [2015-10-11 22:34:11] INFO going to shutdown ...
2015-10-11T22:34:11.813551+00:00 app[web.1]: [2015-10-11 22:34:11] INFO WEBrick::HTTPServer#start done.
2015-10-11T22:34:11.813591+00:00 app[web.1]: => Booting WEBrick
2015-10-11T22:34:11.813594+00:00 app[web.1]: => Runrails server -hfor more startup options
2015-10-11T22:34:11.813593+00:00 app[web.1]: => Rails 4.2.1 application starting in production on http://0.0.0.0:21794
2015-10-11T22:34:11.813598+00:00 app[web.1]: Exiting
2015-10-11T22:34:11.813596+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-10-11T22:34:12.863144+00:00 heroku[web.1]: Process exited with status 143
2015-10-11T22:59:27.859347+00:00 heroku[web.1]: Unidling
2015-10-11T22:59:27.859754+00:00 heroku[web.1]: State changed from down to starting
2015-10-11T22:59:31.767799+00:00 heroku[web.1]: Starting process with commandbin/rails server -p 43789 -e production
2015-10-11T22:59:35.850425+00:00 app[web.1]: [2015-10-11 22:59:35] INFO WEBrick 1.3.1
2015-10-11T22:59:35.850445+00:00 app[web.1]: [2015-10-11 22:59:35] INFO ruby 2.0.0 (2015-04-13) [x86_64-linux]
2015-10-11T22:59:35.850845+00:00 app[web.1]: [2015-10-11 22:59:35] INFO WEBrick::HTTPServer#start: pid=3 port=43789
2015-10-11T22:59:36.187808+00:00 heroku[web.1]: State changed from starting to up
2015-10-11T22:59:36.930155+00:00 app[web.1]: => Booting WEBrick
2015-10-11T22:59:36.930162+00:00 app[web.1]: => Rails 4.2.1 application starting in production on http://0.0.0.0:43789
2015-10-11T22:59:36.930163+00:00 app[web.1]: => Runrails server -hfor more startup options
2015-10-11T22:59:36.930165+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-10-11T22:59:36.963421+00:00 app[web.1]: Processing by ApplicationController#hello as HTML
2015-10-11T22:59:36.930166+00:00 app[web.1]: Started GET "/" for 208.115.151.20 at 2015-10-11 22:59:36 +0000
2015-10-11T22:59:36.971478+00:00 app[web.1]: Completed 200 OK in 8ms (Views: 0.6ms | ActiveRecord: 0.0ms)
2015-10-11T22:59:36.974594+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-journey-1439.herokuapp.com request_id=b8fe0c84-e45c-4997-be06-9742f276fb98 fwd="208.115.151.20" dyno=web.1 connect=1ms service=47ms status=304 bytes=397
2015-10-11T22:59:36.971195+00:00 app[web.1]: Rendered text template (0.0ms)
2015-10-11T22:59:37.155800+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-journey-1439.herokuapp.com request_id=ce175e20-0e6c-40e1-9e4e-ec842143c159 fwd="208.115.151.20" dyno=web.1 connect=16ms service=4ms status=200 bytes=228
2015-10-11T23:35:06.014571+00:00 heroku[web.1]: Idling
2015-10-11T23:35:06.015165+00:00 heroku[web.1]: State changed from up to down
2015-10-11T23:35:08.748838+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2015-10-11T23:35:09.396823+00:00 app[web.1]: [2015-10-11 23:35:09] FATAL SignalException: SIGTERM
2015-10-11T23:35:09.396829+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:inselect'
2015-10-11T23:35:09.396831+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in block in start'
2015-10-11T23:35:09.396833+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:instart'
2015-10-11T23:35:09.396834+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in start'
2015-10-11T23:35:09.396835+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:34:inrun'
2015-10-11T23:35:09.396838+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/server.rb:80:in start'
2015-10-11T23:35:09.396836+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:286:instart'
2015-10-11T23:35:09.396843+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in run_command!'
2015-10-11T23:35:09.396840+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:80:inblock in server'
2015-10-11T23:35:09.396846+00:00 app[web.1]: bin/rails:8:in require'
2015-10-11T23:35:09.396847+00:00 app[web.1]: bin/rails:8:in'
2015-10-11T23:35:09.396842+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:in server'
2015-10-11T23:35:09.396841+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:75:intap'
2015-10-11T23:35:09.396844+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/commands.rb:17:in <top (required)>'
2015-10-11T23:35:09.396853+00:00 app[web.1]: [2015-10-11 23:35:09] INFO going to shutdown ...
2015-10-11T23:35:09.396894+00:00 app[web.1]: Exiting
2015-10-11T23:35:09.396870+00:00 app[web.1]: [2015-10-11 23:35:09] INFO WEBrick::HTTPServer#start done.
2015-10-11T23:35:10.254851+00:00 heroku[web.1]: Process exited with status 143
WARNING: Toolbelt v3.42.17 update available.
I'm extremely new to coding
Because you're new, I'll give you a breakdown of how I'd debug this. It may not be an answer in itself, but it should at least help you out.
Firstly, you need to make sure you have the right controller and views set up.
The main problem for many new coders is they will blindly follow a tutorial and then be unable to understand what is being done. I know what it's like because I do it all the time (when learning something new)..
Thus, you need to understand what is being added to your app, and how it should behave:
1. Controller
Your first port of call is the controller.
You can read more about this here.
Rails will have created:
#app/controllers/static_pages_controller.rb
class StaticPagesController < ApplicationController
def hello
end
def help
end
end
This, although not strictly adhering to the CRUD setup you'll use later in Rails, should give you at least the ability to call these two actions.
You must first check if you have the above file.
2. Views
Secondly, you need to look at the views you've had generated.
These will be located at:
#app/views/static_pages/hello.html.erb
#app/views/static_pages/help.html.erb
Both of these will provide functionality to allow you to view your controller action outputs. They're not critical to the debug process at this time.
They should really have nothing inside them.
3. Routes
Finally, you want to look at your routes.
#config/routes.rb
resources :static_pages, only: [], path: "" do
collection do
get :hello #-> url.com/hello
get :help #-> url.com/help
end
end
This will give you the ability to access the controller actions, and by virtue, the views that you have just generated.
All of these should work together, without any data, to provide access to url.com/hello and url.com/help.
(source: asciicasts.com)
500 Errors are basically saying your server has an error.
What errors on the server might cause the 500 issue?
Mostly, it's due to calling variables which don't exist...
#app/views/static_pages/hello.html.erb
<%= #hello %>
If you're using Heroku, the best way to debug - as with standard Rails - is to look at the console. In standard rails, the console is visible on your screen (most of the time); with Heroku, it's slightly different.
Heroku logs are strange because they don't format very well in Windows. We tend to use LogEntries with the "live" functionality to see what's going on, and correct it:
Browsing through these logs will show you what the error is, and thus give you some perspective on how to fix it.
--
Finally, you may wish to use a gem such as better_errors or exception_handler
i've checked every post regarding this but it doesn't seem to solve my problem..
here's what i've tried
changing config.assets.compile = false to true in environment/production as it might be a problem in compilation (in reference to this Heroku — "We're sorry, but something went wrong")
heroku run rake db:migrate.. seems to be the solution in most cases, but the problem is i don't have a database.. and it showed this result
Running `rake db:migrate` attached to terminal... up, run.3272
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bu
them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/201
eased. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bu
them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/201
eased. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bu
them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/201
even heroku logs have this Deprecation warnings
←[36m2013-07-17T07:45:32.553996+00:00 heroku[web.1]:←[0m Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 20199`
←[36m2013-07-17T07:45:34.178981+00:00 heroku[web.1]:←[0m Stopping all processes with SIGTERM
←[36m2013-07-17T07:45:35.587040+00:00 app[web.1]:←[0m DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plug
Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release not
.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
←[36m2013-07-17T07:45:35.587536+00:00 app[web.1]:←[0m DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plug
Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release not
.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
←[36m2013-07-17T07:45:35.586908+00:00 app[web.1]:←[0m DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plug
Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release not
.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
←[36m2013-07-17T07:45:36.183427+00:00 heroku[web.1]:←[0m Process exited with status 0
←[36m2013-07-17T07:45:37.602911+00:00 app[web.1]:←[0m >> Listening on 0.0.0.0:20199, CTRL+C to stop
←[36m2013-07-17T07:45:37.602821+00:00 app[web.1]:←[0m >> Maximum connections set to 1024
←[36m2013-07-17T07:45:37.602821+00:00 app[web.1]:←[0m >> Thin web server (v1.5.1 codename Straight Razor)
←[36m2013-07-17T07:45:37.750492+00:00 heroku[web.1]:←[0m State changed from starting to up
←[36m2013-07-17T07:45:38.863569+00:00 app[web.1]:←[0m Started GET "/" for 180.194.29.171 at 2013-07-17 07:45:38 +0000
←[36m2013-07-17T07:45:39.426857+00:00 app[web.1]:←[0m Connecting to database specified by DATABASE_URL
←[36m2013-07-17T07:45:39.646018+00:00 app[web.1]:←[0m Processing by WelcomeController#index as HTML
←[36m2013-07-17T07:45:39.950625+00:00 app[web.1]:←[0m Rendered welcome/index.html.erb within layouts/application (275.2ms)
here's the rest of the logs:
←[35m2013-07-17T07:36:43.950427+00:00 heroku[run.3272]:←[0m State changed from up to complete
←[35m2013-07-17T07:36:43.928758+00:00 heroku[run.3272]:←[0m Process exited with status 0
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 2: <head>
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 5: <%= javascript_include_tag "welcome" %>
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m (in /app/app/assets/javascripts/welcome.js)):
←[36m2013-07-17T07:38:16.884008+00:00 app[web.1]:←[0m Processing by WelcomeController#index as HTML
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 8: </head>
←[36m2013-07-17T07:38:16.891422+00:00 app[web.1]:←[0m app/views/welcome/index.html.erb:5:in `_app_views_welcome_index_html_erb___350577225301439618
←[36m2013-07-17T07:38:16.887951+00:00 app[web.1]:←[0m Rendered welcome/index.html.erb within layouts/application (2.9ms)
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 6: <%= javascript_include_tag "connectFour" %>
←[36m2013-07-17T07:38:16.880639+00:00 app[web.1]:←[0m Started GET "/" for 180.194.29.171 at 2013-07-17 07:38:16 +0000
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 3: <title>ConnectFour</title>
←[36m2013-07-17T07:38:16.888300+00:00 app[web.1]:←[0m Completed 500 Internal Server Error in 4ms
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m ActionView::Template::Error (cannot load such file -- uglifier
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 7: <%= csrf_meta_tags %>
←[36m2013-07-17T07:38:16.891236+00:00 app[web.1]:←[0m 4: <%= stylesheet_link_tag "application", :media => "all" %>
←[36m2013-07-17T07:38:16.891422+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:38:16.891422+00:00 app[web.1]:←[0m
←[33m2013-07-17T07:38:16.889783+00:00 heroku[router]:←[0m at=info method=GET path=/ host=dry-tundra-9704.herokuapp.com fwd="180.194.29.171" dyno=web.
500 bytes=643
←[33m2013-07-17T07:38:18.527722+00:00 heroku[router]:←[0m at=info method=GET path=/favicon.ico host=dry-tundra-9704.herokuapp.com fwd="180.194.29.171
ms status=200 bytes=0
←[36m2013-07-17T07:40:59.052597+00:00 app[web.1]:←[0m Started GET "/" for 180.194.29.171 at 2013-07-17 07:40:59 +0000
←[36m2013-07-17T07:40:59.057092+00:00 app[web.1]:←[0m Processing by WelcomeController#index as HTML
←[36m2013-07-17T07:40:59.060778+00:00 app[web.1]:←[0m Rendered welcome/index.html.erb within layouts/application (3.1ms)
←[36m2013-07-17T07:40:59.060858+00:00 app[web.1]:←[0m Completed 500 Internal Server Error in 4ms
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m (in /app/app/assets/javascripts/welcome.js)):
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m ActionView::Template::Error (cannot load such file -- uglifier
←[36m2013-07-17T07:40:59.066252+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 4: <%= stylesheet_link_tag "application", :media => "all" %>
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 2: <head>
←[36m2013-07-17T07:40:59.066252+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 8: </head>
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 3: <title>ConnectFour</title>
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 5: <%= javascript_include_tag "welcome" %>
←[36m2013-07-17T07:40:59.066252+00:00 app[web.1]:←[0m app/views/welcome/index.html.erb:5:in `_app_views_welcome_index_html_erb___350577225301439618
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 6: <%= javascript_include_tag "connectFour" %>
←[36m2013-07-17T07:40:59.066089+00:00 app[web.1]:←[0m 7: <%= csrf_meta_tags %>
←[33m2013-07-17T07:40:59.070059+00:00 heroku[router]:←[0m at=info method=GET path=/ host=dry-tundra-9704.herokuapp.com fwd="180.194.29.171" dyno=web.
500 bytes=643
←[33m2013-07-17T07:41:00.133064+00:00 heroku[router]:←[0m at=info method=GET path=/favicon.ico host=dry-tundra-9704.herokuapp.com fwd="180.194.29.171
ms status=200 bytes=0
2013-07-17T07:44:51+00:00 heroku[slug-compiler]: Slug compilation started
←[36m2013-07-17T07:45:30.985926+00:00 heroku[web.1]:←[0m State changed from up to starting
2013-07-17T07:45:31+00:00 heroku[slug-compiler]: Slug compilation finished
←[36m2013-07-17T07:45:32.553996+00:00 heroku[web.1]:←[0m Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 20199`
←[36m2013-07-17T07:45:34.178981+00:00 heroku[web.1]:←[0m Stopping all processes with SIGTERM
[36m2013-07-17T07:45:36.183427+00:00 heroku[web.1]:←[0m Process exited with status 0
←[36m2013-07-17T07:45:37.602911+00:00 app[web.1]:←[0m >> Listening on 0.0.0.0:20199, CTRL+C to stop Server Error in 305ms
←[36m2013-07-17T07:45:37.602821+00:00 app[web.1]:←[0m >> Maximum connections set to 1024 ←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←
←[36m2013-07-17T07:45:37.602821+00:00 app[web.1]:←[0m >> Thin web server (v1.5.1 codename Straight Razor) [0m 2: <head>
←[36m2013-07-17T07:45:37.750492+00:00 heroku[web.1]:←[0m State changed from starting to up ←[36m2013-07-17T07:45:3
←[36m2013-07-17T07:45:38.863569+00:00 app[web.1]:←[0m Started GET "/" for 180.194.29.171 at 2013-07-17 07:45:38 +0000 9.953395+00:00 app[web.1]:←[0m app/views/welcome/i
←[36m2013-07-17T07:45:39.426857+00:00 app[web.1]:←[0m Connecting to database specified by DATABASE_URL
←[36m2013-07-17T07:45:39.646018+00:00 app[web.1]:←[0m Processing by WelcomeController#index as HTML ←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]
←[36m2013-07-17T07:45:39.950625+00:00 app[web.1]:←[0m Rendered welcome/index.html.erb within layouts/application (275.2ms) :←[0m 6: <%= javascript_include_tag "connectFo
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m ActionView::Template::Error (cannot load such file -- uglifier ←[33m2013-07-17T07:45
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 3: <title>ConnectFour</title> 0
←[33m2013-07-17T07:45:39.954812+00:00 heroku[router]:←[0m at=info method=GET path=/ host=dry-tundra-9704.herokuapp.com fwd="180.194
s=500 bytes=643
←[36m2013-07-17T07:45:39.950710+00:00 app[web.1]:←[0m Completed 500 Internal Server Error in 305ms
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m (in /app/app/assets/javascripts/welcome.js)):
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 2: <head>
←[36m2013-07-17T07:45:39.953395+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 4: <%= stylesheet_link_tag "application", :media => "all" %>
←[36m2013-07-17T07:45:39.953395+00:00 app[web.1]:←[0m app/views/welcome/index.html.erb:5:in `_app_views_welcome_index_html_erb__1768954839152578095
←[36m2013-07-17T07:45:39.953395+00:00 app[web.1]:←[0m
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 8: </head>
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 5: <%= javascript_include_tag "welcome" %>
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 6: <%= javascript_include_tag "connectFour" %>
←[36m2013-07-17T07:45:39.953217+00:00 app[web.1]:←[0m 7: <%= csrf_meta_tags %>
←[33m2013-07-17T07:45:41.221022+00:00 heroku[router]:←[0m at=info method=GET path=/favicon.ico host=dry-tundra-9704.herokuapp.com fwd="180.194.29.171
i think my Gemfile is ok here:
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.13'
group :development do
gem 'sqlite3'
end
group :production do
gem 'thin'
gem 'pg'
end
and also there's this
-----> WARNINGS:
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
whenever i deploy my app this thing shows up. i've deleted this file before rewriting the Gemfile, but it was generated i guess when i deployed it the app ..
what could be causing it?
You are missing uglifier gem . You need to add it and push to heroku
group :assets do
gem 'uglifier'
end
Your heroku error is
ActionView::Template::Error (cannot load such file -- uglifier
Please add gem
gem 'uglifier'
In Gemfile
2) then run bundle install in local
3) then git add , git commit, git push heroku
I'm having trouble deploying to Heroku, I've installed postgresql but I don't think I've configured it properly. This may or may not be the problem, but I have a hunch it has something to do with it. please advice.
the git for the blog: https://github.com/Apane/Blogit_blog
Updated Heroku Logs
2013-05-25T02:32:07.946326+00:00 app[web.1]: 1: <div class="right1">
2013-05-25T02:32:07.946326+00:00 app[web.1]: 2: <%= login_required class: "actions", id: "new_blog_post_link" do %>
2013-05-25T02:32:07.946326+00:00 app[web.1]: 3: <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
2013-05-25T02:32:07.941979+00:00 app[web.1]: Rendered blogit/posts/index.html.erb within layouts/application (91.1ms)
2013-05-25T02:32:07.946326+00:00 app[web.1]:
2013-05-25T02:32:07.946326+00:00 app[web.1]: ActionView::Template::Error (unknown attribute: name):
2013-05-25T02:32:07.946326+00:00 app[web.1]: app/controllers/application_controller.rb:5:in `current_user'
2013-05-25T02:32:07.946326+00:00 app[web.1]:
2013-05-25T02:32:07.946665+00:00 app[web.1]:
2013-05-25T02:32:07.946326+00:00 app[web.1]: app/views/blogit/posts/index.html.erb:2:in `_app_views_blogit_posts_index_html_erb__3752095678148312245_34603300'
2013-05-25T02:32:07.946326+00:00 app[web.1]: 5: </div>
2013-05-25T02:32:07.946326+00:00 app[web.1]: 4: <% end %>
2013-05-25T02:32:07.997684+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-05-25T02:32:07.997684+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-05-25T02:32:10.467911+00:00 heroku[web.1]: Process exited with status 137
2013-05-25T02:37:19.248690+00:00 heroku[slugc]: Slug compilation started
2013-05-25T02:38:02.467323+00:00 heroku[api]: Deploy de08b17 by "email"
2013-05-25T02:38:02.493201+00:00 heroku[api]: Release v9 created by "email"
2013-05-25T02:38:02.544564+00:00 heroku[api]: Deploy de08b17 by "email"
2013-05-25T02:38:03.445329+00:00 heroku[slugc]: Slug compilation finished
2013-05-25T02:38:04.208989+00:00 heroku[web.1]: State changed from up to starting
2013-05-25T02:38:06.350047+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 41915`
2013-05-25T02:38:07.613671+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-05-25T02:38:08.321413+00:00 app[web.1]: [2013-05-25 02:38:08] ERROR SignalException: SIGTERM
2013-05-25T02:38:08.321413+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-05-25T02:38:15.184606+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:38:15.184606+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:38:15.187273+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:38:16.758556+00:00 app[web.1]: [Blogit]: Blogit::Configuration#rss_feed_language has been deprecated. You can remove this from your blogit.rb configuration file
2013-05-25T02:38:17.431528+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-05-25T02:38:17.431823+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-05-25T02:38:18.932239+00:00 app[web.1]: [2013-05-25 02:38:18] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-05-25T02:38:18.932504+00:00 app[web.1]: [2013-05-25 02:38:18] INFO WEBrick::HTTPServer#start: pid=2 port=41915
2013-05-25T02:38:18.932239+00:00 app[web.1]: [2013-05-25 02:38:18] INFO WEBrick 1.3.1
2013-05-25T02:38:19.138465+00:00 heroku[web.1]: State changed from starting to up
2013-05-25T02:38:19.286419+00:00 heroku[web.1]: Process exited with status 137
2013-05-25T02:38:24.702435+00:00 app[web.1]: Started GET "/" for 99.233.170.104 at 2013-05-25 02:38:24 +0000
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Call with -d to detach
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Booting WEBrick
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:41915
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-05-25T02:38:24.865680+00:00 app[web.1]: Processing by Blogit::PostsController#index as HTML
2013-05-25T02:38:25.061058+00:00 app[web.1]: Rendered blogit/posts/index.html.erb within layouts/application (130.6ms)
2013-05-25T02:38:25.061376+00:00 app[web.1]: Completed 500 Internal Server Error in 196ms
2013-05-25T02:38:25.063272+00:00 app[web.1]:
2013-05-25T02:38:25.063272+00:00 app[web.1]: ActionView::Template::Error (unknown attribute: name):
2013-05-25T02:38:25.063272+00:00 app[web.1]: 1: <div class="right1">
2013-05-25T02:38:25.063092+00:00 heroku[router]: at=info method=GET path=/ host=infinite-springs-1056.herokuapp.com fwd="99.233.170.104" dyno=web.1 connect=3ms service=407ms status=500 bytes=643
2013-05-25T02:38:25.063272+00:00 app[web.1]: 2: <%= login_required class: "actions", id: "new_blog_post_link" do %>
2013-05-25T02:38:25.063272+00:00 app[web.1]: 4: <% end %>
2013-05-25T02:38:25.063585+00:00 app[web.1]:
2013-05-25T02:38:25.063272+00:00 app[web.1]: 3: <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
2013-05-25T02:38:25.063272+00:00 app[web.1]: 5: </div>
2013-05-25T02:38:25.063272+00:00 app[web.1]: app/views/blogit/posts/index.html.erb:2:in `_app_views_blogit_posts_index_html_erb___1859728747634219045_31435420'
2013-05-25T02:38:25.063272+00:00 app[web.1]:
2013-05-25T02:38:25.063272+00:00 app[web.1]: app/controllers/application_controller.rb:5:in `current_user'
2013-05-25T02:39:31.009984+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by "email"
2013-05-25T02:39:35.228241+00:00 heroku[run.1589]: Awaiting client
2013-05-25T02:39:35.254224+00:00 heroku[run.1589]: Starting process with command `bundle exec rake db:migrate`
2013-05-25T02:39:36.715005+00:00 heroku[run.1589]: State changed from starting to up
2013-05-25T02:39:43.583619+00:00 heroku[run.1589]: Process exited with status 0
2013-05-25T02:39:43.598693+00:00 heroku[run.1589]: State changed from up to complete
2013-05-25T02:47:44.635791+00:00 heroku[api]: Deploy 3b2c0e0 by "email"
2013-05-25T02:47:44.659753+00:00 heroku[api]: Release v10 created by "email"
2013-05-25T02:47:44.704699+00:00 heroku[api]: Deploy 3b2c0e0 by "email"
2013-05-25T02:47:45.205793+00:00 heroku[web.1]: State changed from up to starting
2013-05-25T02:47:48.591029+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 27123`
2013-05-25T02:47:49.862664+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-05-25T02:47:50.836497+00:00 app[web.1]: [2013-05-25 02:47:50] ERROR SignalException: SIGTERM
2013-05-25T02:47:50.836497+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-05-25T02:47:54.610704+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them
in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:47:54.611109+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:47:54.611344+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:47:56.472610+00:00 app[web.1]: [Blogit]: Blogit::Configuration#rss_feed_language has been deprecated. You can remove this from your blogit.rb configuration file
2013-05-25T02:47:57.907795+00:00 app[web.1]: [2013-05-25 02:47:57] INFO WEBrick 1.3.1
2013-05-25T02:47:57.907795+00:00 app[web.1]: [2013-05-25 02:47:57] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-05-25T02:47:57.908723+00:00 app[web.1]: [2013-05-25 02:47:57] INFO WEBrick::HTTPServer#start: pid=2 port=27123
2013-05-25T02:47:58.197066+00:00 heroku[web.1]: State changed from starting to up
2013-05-25T02:47:58.851641+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-05-25T02:47:58.851887+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Booting WEBrick
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:27123
2013-05-25T02:48:00.088867+00:00 app[web.1]: Started GET "/" for 99.233.170.104 at 2013-05-25 02:48:00 +0000
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Call with -d to detach
2013-05-25T02:48:00.290164+00:00 app[web.1]: Processing by Blogit::PostsController#index as HTML
2013-05-25T02:48:00.460839+00:00 app[web.1]: Rendered blogit/posts/index.html.erb within layouts/application (98.8ms)
2013-05-25T02:48:00.462767+00:00 app[web.1]:
2013-05-25T02:48:00.462767+00:00 app[web.1]: 1: <div class="right1">
2013-05-25T02:48:00.461055+00:00 app[web.1]: Completed 500 Internal Server Error in 171ms
2013-05-25T02:48:00.462767+00:00 app[web.1]: ActionView::Template::Error (unknown attribute: name):
2013-05-25T02:48:00.462767+00:00 app[web.1]: 4: <% end %>
2013-05-25T02:48:00.462767+00:00 app[web.1]: 3: <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
2013-05-25T02:48:00.462767+00:00 app[web.1]: 2: <%= login_required class: "actions", id: "new_blog_post_link" do %>
2013-05-25T02:48:00.462767+00:00 app[web.1]: 5: </div>
2013-05-25T02:48:00.462767+00:00 app[web.1]: app/controllers/application_controller.rb:5:in `current_user'
2013-05-25T02:48:00.462767+00:00 app[web.1]: app/views/blogit/posts/index.html.erb:2:in `_app_views_blogit_posts_index_html_erb___1549385033592403810_36478100'
2013-05-25T02:48:00.462767+00:00 app[web.1]:
2013-05-25T02:48:00.463077+00:00 app[web.1]:
2013-05-25T02:48:00.471980+00:00 heroku[router]: at=info method=GET path=/ host=infinite-springs-1056.herokuapp.com fwd="99.233.170.104" dyno=web.1 connect=3ms service=421ms status=500 bytes=643
2013-05-25T02:48:01.026129+00:00 heroku[web.1]: Process exited with status 137
As stated in the error logs, the problem is coming from
app/controllers/application_controller.rb:5:in `current_user'
which is
#current_user ||= User.first || User.create!(name: "APane")
You are trying to create a new row in the User table passing in a name attribute on the user table, but it doesn't exist. In your schema, user does not have a name field. You will need to generate a migration to add it.
You may want to brush up on some basic understanding of rails applications as well. The guides are very helpful.
Have you run 'heroku run rake db:migrate'? It seems like Heroku doesn't see your User model, which means it might not yet be in the database.
Here's a similar question: Heroku Postgres Error: PGError: ERROR: relation "organizations" does not exist (ActiveRecord::StatementInvalid)
Looks like you are using Webrick, I am pretty sure you should be using Thin for Heroku. Not sure if it will fix your problem though.
I noticed in your Gemfile you have a mistake with the indention of end in your :production group.
Change this
group :production do
gem 'pg'
end
to this
group :production do
gem 'pg'
end
Also, if you are using sqlite for development and postgresql for production and you are not sure about installing postgresql correctly. Do this
bundle install --without production
This will get you up and running on Heroku.
However, Heroku doesn't recommend running different databases in development and production because it can lead to hard to find bugs, etc. So it would be wise to figure out how to run postgresql in both environments soon. Hope this gets you started
This question already has answers here:
Can't deploy to heroku [heroku log included]
(4 answers)
Closed 9 years ago.
I'm having trouble deploying to Heroku, I've just fixed a postgresql error but now have an ActionView error amongst others. Not sure how to fix this one. please advice.
the git for the blog: https://github.com/Apane/Blogit_blog
Heroku Logs
2013-05-25T02:32:07.946326+00:00 app[web.1]: 1: <div class="right1">
2013-05-25T02:32:07.946326+00:00 app[web.1]: 2: <%= login_required class: "actions", id: "new_blog_post_link" do %>
2013-05-25T02:32:07.946326+00:00 app[web.1]: 3: <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
2013-05-25T02:32:07.941979+00:00 app[web.1]: Rendered blogit/posts/index.html.erb within layouts/application (91.1ms)
2013-05-25T02:32:07.946326+00:00 app[web.1]:
2013-05-25T02:32:07.946326+00:00 app[web.1]: ActionView::Template::Error (unknown attribute: name):
2013-05-25T02:32:07.946326+00:00 app[web.1]: app/controllers/application_controller.rb:5:in `current_user'
2013-05-25T02:32:07.946326+00:00 app[web.1]:
2013-05-25T02:32:07.946665+00:00 app[web.1]:
2013-05-25T02:32:07.946326+00:00 app[web.1]: app/views/blogit/posts/index.html.erb:2:in `_app_views_blogit_posts_index_html_erb__3752095678148312245_34603300'
2013-05-25T02:32:07.946326+00:00 app[web.1]: 5: </div>
2013-05-25T02:32:07.946326+00:00 app[web.1]: 4: <% end %>
2013-05-25T02:32:07.997684+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-05-25T02:32:07.997684+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-05-25T02:32:10.467911+00:00 heroku[web.1]: Process exited with status 137
2013-05-25T02:37:19.248690+00:00 heroku[slugc]: Slug compilation started
2013-05-25T02:38:02.467323+00:00 heroku[api]: Deploy de08b17 by "email"
2013-05-25T02:38:02.493201+00:00 heroku[api]: Release v9 created by "email"
2013-05-25T02:38:02.544564+00:00 heroku[api]: Deploy de08b17 by "email"
2013-05-25T02:38:03.445329+00:00 heroku[slugc]: Slug compilation finished
2013-05-25T02:38:04.208989+00:00 heroku[web.1]: State changed from up to starting
2013-05-25T02:38:06.350047+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 41915`
2013-05-25T02:38:07.613671+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-05-25T02:38:08.321413+00:00 app[web.1]: [2013-05-25 02:38:08] ERROR SignalException: SIGTERM
2013-05-25T02:38:08.321413+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-05-25T02:38:15.184606+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:38:15.184606+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:38:15.187273+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:38:16.758556+00:00 app[web.1]: [Blogit]: Blogit::Configuration#rss_feed_language has been deprecated. You can remove this from your blogit.rb configuration file
2013-05-25T02:38:17.431528+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-05-25T02:38:17.431823+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-05-25T02:38:18.932239+00:00 app[web.1]: [2013-05-25 02:38:18] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-05-25T02:38:18.932504+00:00 app[web.1]: [2013-05-25 02:38:18] INFO WEBrick::HTTPServer#start: pid=2 port=41915
2013-05-25T02:38:18.932239+00:00 app[web.1]: [2013-05-25 02:38:18] INFO WEBrick 1.3.1
2013-05-25T02:38:19.138465+00:00 heroku[web.1]: State changed from starting to up
2013-05-25T02:38:19.286419+00:00 heroku[web.1]: Process exited with status 137
2013-05-25T02:38:24.702435+00:00 app[web.1]: Started GET "/" for 99.233.170.104 at 2013-05-25 02:38:24 +0000
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Call with -d to detach
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Booting WEBrick
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:41915
2013-05-25T02:38:24.702435+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-05-25T02:38:24.865680+00:00 app[web.1]: Processing by Blogit::PostsController#index as HTML
2013-05-25T02:38:25.061058+00:00 app[web.1]: Rendered blogit/posts/index.html.erb within layouts/application (130.6ms)
2013-05-25T02:38:25.061376+00:00 app[web.1]: Completed 500 Internal Server Error in 196ms
2013-05-25T02:38:25.063272+00:00 app[web.1]:
2013-05-25T02:38:25.063272+00:00 app[web.1]: ActionView::Template::Error (unknown attribute: name):
2013-05-25T02:38:25.063272+00:00 app[web.1]: 1: <div class="right1">
2013-05-25T02:38:25.063092+00:00 heroku[router]: at=info method=GET path=/ host=infinite-springs-1056.herokuapp.com fwd="99.233.170.104" dyno=web.1 connect=3ms service=407ms status=500 bytes=643
2013-05-25T02:38:25.063272+00:00 app[web.1]: 2: <%= login_required class: "actions", id: "new_blog_post_link" do %>
2013-05-25T02:38:25.063272+00:00 app[web.1]: 4: <% end %>
2013-05-25T02:38:25.063585+00:00 app[web.1]:
2013-05-25T02:38:25.063272+00:00 app[web.1]: 3: <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
2013-05-25T02:38:25.063272+00:00 app[web.1]: 5: </div>
2013-05-25T02:38:25.063272+00:00 app[web.1]: app/views/blogit/posts/index.html.erb:2:in `_app_views_blogit_posts_index_html_erb___1859728747634219045_31435420'
2013-05-25T02:38:25.063272+00:00 app[web.1]:
2013-05-25T02:38:25.063272+00:00 app[web.1]: app/controllers/application_controller.rb:5:in `current_user'
2013-05-25T02:39:31.009984+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by "email"
2013-05-25T02:39:35.228241+00:00 heroku[run.1589]: Awaiting client
2013-05-25T02:39:35.254224+00:00 heroku[run.1589]: Starting process with command `bundle exec rake db:migrate`
2013-05-25T02:39:36.715005+00:00 heroku[run.1589]: State changed from starting to up
2013-05-25T02:39:43.583619+00:00 heroku[run.1589]: Process exited with status 0
2013-05-25T02:39:43.598693+00:00 heroku[run.1589]: State changed from up to complete
2013-05-25T02:47:44.635791+00:00 heroku[api]: Deploy 3b2c0e0 by "email"
2013-05-25T02:47:44.659753+00:00 heroku[api]: Release v10 created by "email"
2013-05-25T02:47:44.704699+00:00 heroku[api]: Deploy 3b2c0e0 by "email"
2013-05-25T02:47:45.205793+00:00 heroku[web.1]: State changed from up to starting
2013-05-25T02:47:48.591029+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 27123`
2013-05-25T02:47:49.862664+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-05-25T02:47:50.836497+00:00 app[web.1]: [2013-05-25 02:47:50] ERROR SignalException: SIGTERM
2013-05-25T02:47:50.836497+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-05-25T02:47:54.610704+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them
in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:47:54.611109+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:47:54.611344+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2013-05-25T02:47:56.472610+00:00 app[web.1]: [Blogit]: Blogit::Configuration#rss_feed_language has been deprecated. You can remove this from your blogit.rb configuration file
2013-05-25T02:47:57.907795+00:00 app[web.1]: [2013-05-25 02:47:57] INFO WEBrick 1.3.1
2013-05-25T02:47:57.907795+00:00 app[web.1]: [2013-05-25 02:47:57] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-05-25T02:47:57.908723+00:00 app[web.1]: [2013-05-25 02:47:57] INFO WEBrick::HTTPServer#start: pid=2 port=27123
2013-05-25T02:47:58.197066+00:00 heroku[web.1]: State changed from starting to up
2013-05-25T02:47:58.851641+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-05-25T02:47:58.851887+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Booting WEBrick
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:27123
2013-05-25T02:48:00.088867+00:00 app[web.1]: Started GET "/" for 99.233.170.104 at 2013-05-25 02:48:00 +0000
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-05-25T02:48:00.088867+00:00 app[web.1]: => Call with -d to detach
2013-05-25T02:48:00.290164+00:00 app[web.1]: Processing by Blogit::PostsController#index as HTML
2013-05-25T02:48:00.460839+00:00 app[web.1]: Rendered blogit/posts/index.html.erb within layouts/application (98.8ms)
2013-05-25T02:48:00.462767+00:00 app[web.1]:
2013-05-25T02:48:00.462767+00:00 app[web.1]: 1: <div class="right1">
2013-05-25T02:48:00.461055+00:00 app[web.1]: Completed 500 Internal Server Error in 171ms
2013-05-25T02:48:00.462767+00:00 app[web.1]: ActionView::Template::Error (unknown attribute: name):
2013-05-25T02:48:00.462767+00:00 app[web.1]: 4: <% end %>
2013-05-25T02:48:00.462767+00:00 app[web.1]: 3: <%= link_to t(:new_blog_post, scope: 'blogit.posts'), new_post_path %>
2013-05-25T02:48:00.462767+00:00 app[web.1]: 2: <%= login_required class: "actions", id: "new_blog_post_link" do %>
2013-05-25T02:48:00.462767+00:00 app[web.1]: 5: </div>
2013-05-25T02:48:00.462767+00:00 app[web.1]: app/controllers/application_controller.rb:5:in `current_user'
2013-05-25T02:48:00.462767+00:00 app[web.1]: app/views/blogit/posts/index.html.erb:2:in `_app_views_blogit_posts_index_html_erb___1549385033592403810_36478100'
2013-05-25T02:48:00.462767+00:00 app[web.1]:
2013-05-25T02:48:00.463077+00:00 app[web.1]:
2013-05-25T02:48:00.471980+00:00 heroku[router]: at=info method=GET path=/ host=infinite-springs-1056.herokuapp.com fwd="99.233.170.104" dyno=web.1 connect=3ms service=421ms status=500 bytes=643
2013-05-25T02:48:01.026129+00:00 heroku[web.1]: Process exited with status 137
here is your problem. In schema.rb you have
create_table "users", :force => true do |t|
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
and in User.rb you have
class User < ActiveRecord::Base
attr_accessible :name
blogs
def username
name = "Anthony Panepinto"
end
end
you need to delete the username method and run a migration to add username as an attribute of User
rails generate migration add_username_to_users username:string
then run
rake db:migrate
If you did this right your schema.rb will look like this
create_table "users", :force => true do |t|
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "username"
end
and User.rb should look like
class User < ActiveRecord::Base
attr_accessible :name
blogs
end
You want to do all this locally in the development environment to make sure everything is right before you push it to Heroku. Its easier to debug in development first rather than looking at Heroku error logs.
I've been working on deploying my first rails app to heroku for the past few nights and am struggling to figure out how to solve this problem.
I used Michael Hartl's tutorial (http://ruby.railstutorial.org/chapters/beginning#sec-deploying) to make sure I set up my app on the Cedar Stack.
Per the Heroku tutorial, I'm using "thin" as the server.
I've read a bunch of posts and have precompiled my assets using:
heroku run bundle exec rake assets:precompile
bundle exec rake assets:precompile
I have also migrated my databases.
My app works on my localhost.
Here is my gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'bootstrap-sass', '2.0.0'
gem 'bcrypt-ruby'
gem 'thin'
group :development, :test do
gem 'rspec-rails'
end
group :development do
gem 'sqlite3'
end
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :test do
gem 'capybara'
gem 'factory_girl_rails'
end
Here are my heroku logs
2012-09-02T01:56:17+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-09-02T01:56:20+00:00 app[web.1]: => Booting Thin
2012-09-02T01:56:20+00:00 app[web.1]: => Rails 3.2.8 application starting in production on http://0.0.0.0:50510
2012-09-02T01:56:20+00:00 app[web.1]: => Call with -d to detach
2012-09-02T01:56:20+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-09-02T01:56:20+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-09-02T01:56:21+00:00 app[web.1]: >> Thin web server (v1.4.1 codename Chromeo)
2012-09-02T01:56:21+00:00 app[web.1]: >> Maximum connections set to 1024
2012-09-02T01:56:21+00:00 app[web.1]: >> Listening on 0.0.0.0:50510, CTRL+C to stop
2012-09-02T01:56:21+00:00 heroku[web.1]: State changed from starting to up
2012-09-02T01:56:23+00:00 app[web.1]:
2012-09-02T01:56:23+00:00 app[web.1]:
2012-09-02T01:56:23+00:00 app[web.1]: Started GET "/" for 108.210.1.241 at 2012-09-02 01:56:23 +0000
2012-09-02T01:56:23+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-09-02T01:56:23+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (14.9ms)
2012-09-02T01:56:23+00:00 app[web.1]: Completed 500 Internal Server Error in 103ms
2012-09-02T01:56:23+00:00 app[web.1]: ActionView::Template::Error (screen.css isn't precompiled):
2012-09-02T01:56:23+00:00 app[web.1]:
2012-09-02T01:56:23+00:00 app[web.1]: 2: <html>
2012-09-02T01:56:23+00:00 app[web.1]: 3: <head>
2012-09-02T01:56:23+00:00 heroku[router]: GET morning-inlet-9513.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=262ms status=500 bytes=643
2012-09-02T01:56:23+00:00 app[web.1]: 4: <title>GabisBag</title>
2012-09-02T01:56:23+00:00 app[web.1]:
2012-09-02T01:56:23+00:00 app[web.1]: 5: <%= stylesheet_link_tag "screen", :media => "screen" %>
2012-09-02T01:56:23+00:00 app[web.1]:
2012-09-02T01:56:23+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__1090905269972481286_30934000'
2012-09-02T01:56:23+00:00 app[web.1]: 6: <%= stylesheet_link_tag "landing_pages", :media => "screen" %>
2012-09-02T01:56:23+00:00 app[web.1]: 7: <%= javascript_include_tag "application" %>
2012-09-02T01:56:23+00:00 app[web.1]: 8: <%= csrf_meta_tags %>
2012-09-02T02:05:54+00:00 heroku[api]: Starting process with command `bundle exec rake assets:precompile` by jflores1#alumni.nd.edu
2012-09-02T02:05:57+00:00 heroku[run.1]: Awaiting client
2012-09-02T02:05:57+00:00 heroku[run.1]: Starting process with command `bundle exec rake assets:precompile`
2012-09-02T02:05:58+00:00 heroku[run.1]: State changed from starting to up
2012-09-02T02:06:14+00:00 heroku[run.1]: Client connection closed. Sending SIGHUP to all processes
2012-09-02T02:06:15+00:00 heroku[run.1]: Process exited with status 0
2012-09-02T02:06:15+00:00 heroku[run.1]: State changed from up to complete
2012-09-02T02:08:22+00:00 heroku[slugc]: Slug compilation started
2012-09-02T02:08:37+00:00 heroku[api]: D
eploy 6817a8e by jflores1#alumni.nd.edu
2012-09-02T02:08:37+00:00 heroku[api]: Release v8 created by jflores1#alumni.nd.edu
2012-09-02T02:08:38+00:00 heroku[web.1]: State changed from up to starting
2012-09-02T02:08:38+00:00 heroku[slugc]: Slug compilation finished
2012-09-02T02:08:40+00:00 heroku[web.1]: Starting process with command `bundle exec rails server thin -p 42652 -e production`
2012-09-02T02:08:41+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2012-09-02T02:08:41+00:00 app[web.1]: Exiting
2012-09-02T02:08:42+00:00 heroku[web.1]: Process exited with status 0
2012-09-02T02:08:44+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-09-02T02:08:44+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-09-02T02:08:47+00:00 app[web.1]: => Booting Thin
2012-09-02T02:08:47+00:00 app[web.1]: => Rails 3.2.8 application starting in production on http://0.0.0.0:42652
2012-09-02T02:08:47+00:00 app[web.1]: => Call with -d to detach
2012-09-02T02:08:47+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-09-02T02:08:47+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2012-09-02T02:08:48+00:00 app[web.1]: >> Thin web server (v1.4.1 codename Chromeo)
2012-09-02T02:08:48+00:00 app[web.1]: >> Maximum connections set to 1024
2012-09-02T02:08:48+00:00 app[web.1]: >> Listening on 0.0.0.0:42652, CTRL+C to stop
2012-09-02T02:08:49+00:00 heroku[web.1]: State changed from starting to up
2012-09-02T02:08:50+00:00 app[web.1]: Started GET "/" for 108.210.1.241 at 2012-09-02 02:08:50 +0000
2012-09-02T02:08:50+00:00 app[web.1]:
2012-09-02T02:08:50+00:00 app[web.1]:
2012-09-02T02:08:50+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-09-02T02:08:50+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (9.3ms)
2012-09-02T02:08:50+00:00 app[web.1]: Completed 500 Internal Server Error in 77ms
2012-09-02T02:08:50+00:00 app[web.1]:
2012-09-02T02:08:50+00:00 app[web.1]: ActionView::Template::Error (screen.css isn't precompiled):
2012-09-02T02:08:50+00:00 app[web.1]: 2: <html>
2012-09-02T02:08:50+00:00 app[web.1]: 3: <head>
2012-09-02T02:08:50+00:00 app[web.1]: 4: <title>GabisBag</title>
2012-09-02T02:08:50+00:00 app[web.1]: 5: <%= stylesheet_link_tag "screen", :media => "screen" %>
2012-09-02T02:08:50+00:00 app[web.1]: 6: <%= stylesheet_link_tag "landing_pages", :media => "screen" %>
2012-09-02T02:08:50+00:00 app[web.1]: 7: <%= javascript_include_tag "application" %>
2012-09-02T02:08:50+00:00 app[web.1]: 8: <%= csrf_meta_tags %>
2012-09-02T02:08:50+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3619394764979485472_40067220'
2012-09-02T02:08:50+00:00 app[web.1]:
2012-09-02T02:08:50+00:00 app[web.1]:
2012-09-02T02:08:50+00:00 heroku[router]: GET morning-inlet-9513.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=221ms status=500 bytes=643
2012-09-02T02:14:08+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by jflores1#alumni.nd.edu
2012-09-02T02:14:10+00:00 heroku[run.1]: Awaiting client
2012-09-02T02:14:10+00:00 heroku[run.1]: Starting process with command `bundle exec rake db:migrate`
2012-09-02T02:14:11+00:00 heroku[run.1]: State changed from starting to up
2012-09-02T02:14:17+00:00 heroku[run.1]: Client connection closed. Sending SIGHUP to all processes
2012-09-02T02:14:18+00:00 heroku[run.1]: Process exited with status 0
2012-09-02T02:14:18+00:00 heroku[run.1]: State changed from up to complete
2012-09-02T02:14:35+00:00 app[web.1]:
2012-09-02T02:14:35+00:00 app[web.1]: Started GET "/" for 108.210.1.241 at 2012-09-02 02:14:35 +0000
2012-09-02T02:14:35+00:00 app[web.1]:
2012-09-02T02:14:35+00:00 app[web.1]: Processing by StaticPagesController#home as HTML
2012-09-02T02:14:35+00:00 app[web.1]: Rendered static_pages/home.html.erb within layouts/application (0.5ms)
2012-09-02T02:14:35+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms
2012-09-02T02:14:35+00:00 app[web.1]:
2012-09-02T02:14:35+00:00 app[web.1]: ActionView::Template::Error (screen.css isn't precompiled):
2012-09-02T02:14:35+00:00 app[web.1]: 2: <html>
2012-09-02T02:14:35+00:00 app[web.1]: 3: <head>
2012-09-02T02:14:35+00:00 app[web.1]: 4: <title>GabisBag</title>
2012-09-02T02:14:35+00:00 app[web.1]: 5: <%= stylesheet_link_tag "screen", :media => "screen" %>
2012-09-02T02:14:35+00:00 app[web.1]: 6: <%= stylesheet_link_tag "landing_pages", :media => "screen" %>
2012-09-02T02:14:35+00:00 app[web.1]: 7: <%= javascript_include_tag "application" %>
2012-09-02T02:14:35+00:00 app[web.1]: 8: <%= csrf_meta_tags %>
2012-09-02T02:14:35+00:00 app[web.1]: app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3619394764979485472_40067220'
2012-09-02T02:14:35+00:00 app[web.1]:
2012-09-02T02:14:35+00:00 app[web.1]:
2012-09-02T02:14:35+00:00 heroku[router]: GET morning-inlet-9513.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=11ms status=500 bytes=643
This looks like the important part:
ActionView::Template::Error (screen.css isn't precompiled):
Seems as though this thread will fix your problem.
As it says:
On heroku server (readonly filesystem), If you want runtime compilation of css (its not recommended but you can do it), make sure you have done settings like below -
# inside config/application.rb
config.assets.enabled = true
config.assets.prefix = Rails.root.join('tmp/assets').to_s
# If you are using sass then keep gem outside of asset group
gem 'sass-rails', '3.1.4'
# inside config/environments/production.rb
config.assets.compile = true
I found the answer here: blueprint css rails 3.1 help
So far as I can tell, this appears to be a problem with using the Blueprint CSS Framework. That said, two other notes:
I commented out the <%= stylesheet_link_tag "screen", :media=>"screen"%> code from my application.html.erb layout file.
I didn't have 'rubyracer' gem installed. I installed it because it was in the gem profiled of the referenced answer. I have no clue what it does.
The URL slashes ("/") are now showing up again wherever I have links. My hunch is that it's something in one of the CSS files that I'm just going to have to dive into and debug. But, the whole reason I had the stylesheet_link_tag thing in the first place was because I was trying to get rid of those pesky slashes. Ultimately, I decided deployment was more important.
Hope this is helpful to someone else!
Here's how I ultimately solved the problem(s). Thanks to the folks who referred me elsewhere so that I could put it all together.
First, I moved Blueprint to a vender directory. I don't think that's crucial to the solution, but it felt cleaner.
The compilation problem:
This thread: blueprint css rails 3.1 help was really helpful. I found Martin and Gary's responses (nos 2 and 3) more helpful than the selected response.
Part of why I was having trouble with compilation (personally) is because I made some edits to the Blueprint files, which meant that they needed to be compiled again before deployment.
This thread: rails 3.1.0 ActionView::Template::Error (application.css isn't precompiled) was helpful in that regard. Basically, just run "Bundle exec rake assets:precompile" before uploading to heroku. I also run "heroku run rake assets:precompile" after upload.
How I got rid of the URL slashes in my links:
The URLs are the result of this code in Blueprint/print.css:
a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;}
a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
I solved the problem by commenting out that code. Of course, after changing the file, you have to rake assets:precompile again. But, that got it all working!