Getting AWS S3 to work with heroku when deploying rails app - ruby-on-rails

I am REALLY having a hard time getting amazon web services S3 storage to be my active record storage solution instead of local in production after deploying to heroku. I get internal server errors in the heroku logs which don't help at all.
my storage.yml
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
local:
service: Disk
root: <%= Rails.root.join("storage") %>
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
# amazon:
amazon:
service: S3
access_key_id: "won't show you"
secret_access_key: "won't show"
region: "us-east-2"
bucket: "novay-technologies"
production.rb
config.active_storage.service = :amazon
Made a procfile also since I need to use Puma for a web server in production on Heroku. Don't know if I did that right. From what I understand it's a plain text file with no file extensions like .txt and it's supposed to be in the root directory of your app.
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-production}
Gemfile:
gem "aws-sdk-s3", require: false
Anything I'm doing wrong? I also configured the variables on the heroku app for the aws_secret credentials, the bucket name, etc.
Heroku Log:
$ heroku logs --tail
2018-09-14T05:33:47.732692+00:00 app[web.1]: I, [2018-09-14T05:33:47.732579 #12] INFO -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] Processing by HomeBlogsController#index as HTML
2018-09-14T05:33:47.756797+00:00 app[web.1]: I, [2018-09-14T05:33:47.756647 #12] INFO -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] Rendering home_blogs/index.html.erb within layouts/application
2018-09-14T05:33:47.770155+00:00 app[web.1]: I, [2018-09-14T05:33:47.770028 #12] INFO -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] Rendered home_blogs/_team_slider.html.erb (2.0ms)
2018-09-14T05:33:47.771796+00:00 app[web.1]: I, [2018-09-14T05:33:47.771700 #12] INFO -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] Rendered home_blogs/index.html.erb within layouts/application (14.8ms)
2018-09-14T05:33:47.772226+00:00 app[web.1]: I, [2018-09-14T05:33:47.772143 #12] INFO -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] Completed 500 Internal Server Error in 39ms
2018-09-14T05:33:47.773372+00:00 app[web.1]: F, [2018-09-14T05:33:47.773284 #12] FATAL -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d]
2018-09-14T05:33:47.773494+00:00 app[web.1]: F, [2018-09-14T05:33:47.773397 #12] FATAL -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] ActionView::Template::Error (The asset "DanielProfile.jpeg" is not present in the asset pipeline.):
2018-09-14T05:33:47.773954+00:00 app[web.1]: F, [2018-09-14T05:33:47.773873 #12] FATAL -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 4: <div id="team-slider">
2018-09-14T05:33:47.773957+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 5:
2018-09-14T05:33:47.773959+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 6: <div class="person active" id="person1">
2018-09-14T05:33:47.773960+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 7: <%= image_tag "DanielProfile.jpeg", :id=>"daniel-pic"%>
2018-09-14T05:33:47.773962+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 8: <figcaption><b>Daniel</b></figcaption><p id="bio-text">Info 1</p><br />
2018-09-14T05:33:47.773964+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 9: </div>
2018-09-14T05:33:47.773966+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] 10: <div class="person" id="person2">
2018-09-14T05:33:47.773987+00:00 app[web.1]: F, [2018-09-14T05:33:47.773932 #12] FATAL -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d]
2018-09-14T05:33:47.774080+00:00 app[web.1]: F, [2018-09-14T05:33:47.774022 #12] FATAL -- : [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] app/views/home_blogs/_team_slider.html.erb:7:in `_app_views_home_blogs__team_slider_html_erb__3603015324260213397_47229290931480'
2018-09-14T05:33:47.774083+00:00 app[web.1]: [ff92f910-5fc0-4fcf-895f-d1b3b78b8f2d] app/views/home_blogs/index.html.erb:48:in `_app_views_home_blogs_index_html_erb___3304137320579381618_47229290790300'
2018-09-14T05:33:48.937228+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=boiling-chamber-89366.herokuapp.com request_id=5801439c-e276-4837-b2d3-9a071b985f88 fwd="107.77.210.166" dyno=web.1 connect=1ms service=13ms status=304 bytes=48 protocol=https
2018-09-14T05:42:45.000000+00:00 app[api]: Build started by user davidmichaelberko#gmail.com
2018-09-14T05:43:36.124158+00:00 heroku[web.1]: Restarting
2018-09-14T05:43:36.125133+00:00 heroku[web.1]: State changed from up to starting
2018-09-14T05:43:37.184709+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-09-14T05:43:37.215584+00:00 app[web.1]: [4] - Gracefully shutting down workers...
2018-09-14T05:43:37.667388+00:00 heroku[web.1]: Process exited with status 143
2018-09-14T05:43:35.147502+00:00 app[api]: Deploy b0e39bae by user davidmichaelberko#gmail.com
2018-09-14T05:43:35.147502+00:00 app[api]: Release v30 created by user davidmichaelberko#gmail.com
2018-09-14T05:43:44.000000+00:00 app[api]: Build succeeded
2018-09-14T05:43:48.420966+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2018-09-14T05:43:52.242466+00:00 app[web.1]: [4] Puma starting in cluster mode...
2018-09-14T05:43:52.242489+00:00 app[web.1]: [4] * Version 3.12.0 (ruby 2.3.5-p376), codename: Llamas in Pajamas
2018-09-14T05:43:52.242491+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5
2018-09-14T05:43:52.242492+00:00 app[web.1]: [4] * Environment: production
2018-09-14T05:43:52.242494+00:00 app[web.1]: [4] * Process workers: 2
2018-09-14T05:43:52.242498+00:00 app[web.1]: [4] * Preloading application
2018-09-14T05:44:03.889732+00:00 app[web.1]: [4] * Listening on tcp://0.0.0.0:42357
2018-09-14T05:44:03.890105+00:00 app[web.1]: [4] ! WARNING: Detected 1 Thread(s) started in app boot:
2018-09-14T05:44:03.890264+00:00 app[web.1]: [4] ! #<Thread:0x00005645c567a6e0#/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:297 sleep> - /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:299:in `sleep'
2018-09-14T05:44:03.890454+00:00 app[web.1]: [4] Use Ctrl-C to stop
2018-09-14T05:44:03.937869+00:00 app[web.1]: [4] - Worker 0 (pid: 8) booted, phase: 0
2018-09-14T05:44:03.961444+00:00 app[web.1]: [4] - Worker 1 (pid: 10) booted, phase: 0
2018-09-14T05:44:04.216217+00:00 heroku[web.1]: State changed from starting to up
2018-09-14T05:44:05.299286+00:00 app[web.1]: I, [2018-09-14T05:44:05.299069 #8] INFO -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] Started GET "/" for 107.77.210.166 at 2018-09-14 05:44:05 +0000
2018-09-14T05:44:05.310460+00:00 app[web.1]: I, [2018-09-14T05:44:05.310361 #8] INFO -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] Processing by HomeBlogsController#index as HTML
2018-09-14T05:44:05.339011+00:00 app[web.1]: I, [2018-09-14T05:44:05.338894 #8] INFO -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] Rendering home_blogs/index.html.erb within layouts/application
2018-09-14T05:44:05.351987+00:00 app[web.1]: I, [2018-09-14T05:44:05.351887 #8] INFO -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] Rendered home_blogs/_team_slider.html.erb (1.9ms)
2018-09-14T05:44:05.352439+00:00 app[web.1]: I, [2018-09-14T05:44:05.352370 #8] INFO -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] Rendered home_blogs/index.html.erb within layouts/application (13.2ms)
2018-09-14T05:44:05.353290+00:00 app[web.1]: I, [2018-09-14T05:44:05.353183 #8] INFO -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] Completed 500 Internal Server Error in 40ms
2018-09-14T05:44:05.355779+00:00 app[web.1]: F, [2018-09-14T05:44:05.355705 #8] FATAL -- : [b6f95d3c-9886-456d-8be6-a2c3182228df]
2018-09-14T05:44:05.355917+00:00 app[web.1]: F, [2018-09-14T05:44:05.355854 #8] FATAL -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] ActionView::Template::Error (The asset "DanielProfile.jpeg" is not present in the asset pipeline.):
2018-09-14T05:44:05.356321+00:00 app[web.1]: F, [2018-09-14T05:44:05.356268 #8] FATAL -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] 4: <div id="team-slider">
2018-09-14T05:44:05.356338+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] 5:
2018-09-14T05:44:05.356340+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] 6: <div class="person active" id="person1">
2018-09-14T05:44:05.356342+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] 7: <%= image_tag "DanielProfile.jpeg", :id=>"daniel-pic"%>
2018-09-14T05:44:05.356343+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] 8: <figcaption><b>Daniel</b></figcaption><p id="bio-text">Info 1</p><br />
2018-09-14T05:44:05.356345+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] 9: </div>
2018-09-14T05:44:05.356346+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] 10: <div class="person" id="person2">
2018-09-14T05:44:05.356602+00:00 app[web.1]: F, [2018-09-14T05:44:05.356549 #8] FATAL -- : [b6f95d3c-9886-456d-8be6-a2c3182228df]
2018-09-14T05:44:05.356712+00:00 app[web.1]: [b6f95d3c-9886-456d-8be6-a2c3182228df] app/views/home_blogs/index.html.erb:48:in `_app_views_home_blogs_index_html_erb___3107958943898777696_47428845125780'
2018-09-14T05:44:05.356710+00:00 app[web.1]: F, [2018-09-14T05:44:05.356640 #8] FATAL -- : [b6f95d3c-9886-456d-8be6-a2c3182228df] app/views/home_blogs/_team_slider.html.erb:7:in `_app_views_home_blogs__team_slider_html_erb___1927171972031439227_47428845168680'
2018-09-14T05:44:05.358493+00:00 heroku[router]: at=info method=GET path="/" host=boiling-chamber-89366.herokuapp.com request_id=b6f95d3c-9886-456d-8be6-a2c3182228df fwd="107.77.210.166" dyno=web.1 connect=0ms service=65ms status=500 bytes=1827 protocol=https
2018-09-14T05:44:06.613224+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=boiling-chamber-89366.herokuapp.com request_id=e5ed5731-f771-4ab7-afbf-3e7f2d86d85c fwd="107.77.210.166" dyno=web.1 connect=0ms service=5ms status=200 bytes=143 protocol=https
2018-09-14T05:45:04.903443+00:00 heroku[web.1]: Restarting
2018-09-14T05:45:04.905478+00:00 heroku[web.1]: State changed from up to starting
2018-09-14T05:45:06.313295+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2018-09-14T05:45:06.335333+00:00 app[web.1]: [4] - Gracefully shutting down workers...
2018-09-14T05:45:07.214828+00:00 heroku[web.1]: Process exited with status 143
2018-09-14T05:45:17.193313+00:00 heroku[web.1]: Starting process with command `bundle exec puma -C config/puma.rb`
2018-09-14T05:45:20.580532+00:00 app[web.1]: [4] Puma starting in cluster mode...
2018-09-14T05:45:20.580563+00:00 app[web.1]: [4] * Version 3.12.0 (ruby 2.3.5-p376), codename: Llamas in Pajamas
2018-09-14T05:45:20.580564+00:00 app[web.1]: [4] * Min threads: 5, max threads: 5
2018-09-14T05:45:20.580566+00:00 app[web.1]: [4] * Environment: production
2018-09-14T05:45:20.580567+00:00 app[web.1]: [4] * Process workers: 2
2018-09-14T05:45:20.580569+00:00 app[web.1]: [4] * Preloading application
2018-09-14T05:45:32.131340+00:00 app[web.1]: [4] * Listening on tcp://0.0.0.0:53222
2018-09-14T05:45:32.131751+00:00 app[web.1]: [4] ! WARNING: Detected 1 Thread(s) started in app boot:
2018-09-14T05:45:32.131894+00:00 app[web.1]: [4] ! #<Thread:0x0000556669fe6350#/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:297 sleep> - /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:299:in `sleep'
2018-09-14T05:45:32.132083+00:00 app[web.1]: [4] Use Ctrl-C to stop
2018-09-14T05:45:32.154305+00:00 app[web.1]: [4] - Worker 1 (pid: 10) booted, phase: 0
2018-09-14T05:45:32.157217+00:00 app[web.1]: [4] - Worker 0 (pid: 8) booted, phase: 0
2018-09-14T05:45:32.833157+00:00 heroku[web.1]: State changed from starting to up
2018-09-14T05:45:35.047364+00:00 app[web.1]: I, [2018-09-14T05:45:35.047164 #8] INFO -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] Started GET "/" for 107.77.210.166 at 2018-09-14 05:45:35 +0000
2018-09-14T05:45:35.060284+00:00 app[web.1]: I, [2018-09-14T05:45:35.060154 #8] INFO -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] Processing by HomeBlogsController#index as HTML
2018-09-14T05:45:35.088955+00:00 app[web.1]: I, [2018-09-14T05:45:35.088816 #8] INFO -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] Rendering home_blogs/index.html.erb within layouts/application
2018-09-14T05:45:35.101253+00:00 app[web.1]: I, [2018-09-14T05:45:35.101109 #8] INFO -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] Rendered home_blogs/_team_slider.html.erb (2.7ms)
2018-09-14T05:45:35.101556+00:00 app[web.1]: I, [2018-09-14T05:45:35.101475 #8] INFO -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] Rendered home_blogs/index.html.erb within layouts/application (12.3ms)
2018-09-14T05:45:35.102302+00:00 app[web.1]: I, [2018-09-14T05:45:35.102231 #8] INFO -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] Completed 500 Internal Server Error in 41ms
2018-09-14T05:45:35.104595+00:00 app[web.1]: F, [2018-09-14T05:45:35.104479 #8] FATAL -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad]
2018-09-14T05:45:35.104745+00:00 app[web.1]: F, [2018-09-14T05:45:35.104653 #8] FATAL -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] ActionView::Template::Error (The asset "DanielProfile.jpeg" is not present in the asset pipeline.):
2018-09-14T05:45:35.105338+00:00 app[web.1]: F, [2018-09-14T05:45:35.105220 #8] FATAL -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 4: <div id="team-slider">
2018-09-14T05:45:35.105341+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 5:
2018-09-14T05:45:35.105343+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 6: <div class="person active" id="person1">
2018-09-14T05:45:35.105347+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 7: <%= image_tag "DanielProfile.jpeg", :id=>"daniel-pic"%>
2018-09-14T05:45:35.105349+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 8: <figcaption><b>Daniel</b></figcaption><p id="bio-text">Info 1</p><br />
2018-09-14T05:45:35.105352+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 9: </div>
2018-09-14T05:45:35.105354+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] 10: <div class="person" id="person2">
2018-09-14T05:45:35.105462+00:00 app[web.1]: F, [2018-09-14T05:45:35.105380 #8] FATAL -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad]
2018-09-14T05:45:35.105578+00:00 app[web.1]: F, [2018-09-14T05:45:35.105512 #8] FATAL -- : [3e50fd37-83b8-4d42-a369-6b03c7d87cad] app/views/home_blogs/_team_slider.html.erb:7:in `_app_views_home_blogs__team_slider_html_erb___49138702036072628_46949189469860'
2018-09-14T05:45:35.105582+00:00 app[web.1]: [3e50fd37-83b8-4d42-a369-6b03c7d87cad] app/views/home_blogs/index.html.erb:48:in `_app_views_home_blogs_index_html_erb__3183323660226002528_46949189328600'
2018-09-14T05:45:35.110118+00:00 heroku[router]: at=info method=GET path="/" host=boiling-chamber-89366.herokuapp.com request_id=3e50fd37-83b8-4d42-a369-6b03c7d87cad fwd="107.77.210.166" dyno=web.1 connect=0ms service=67ms status=500 bytes=1827 protocol=https
2018-09-14T05:45:35.913068+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=boiling-chamber-89366.herokuapp.com request_id=cdfbccd2-efcf-4a1a-8c9e-849d05efa8fd fwd="107.77.210.166" dyno=web.1 connect=0ms service=1ms status=304 bytes=48 protocol=https
▸ Log stream timed out. Please try again.
puma.rb
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
threads threads_count, threads_count
preload_app!
rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
on_worker_boot do
# Worker specific setup for Rails 4.1+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
end
gemfile
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.3.5'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.0'
# Use sqlite3 as the database for Active Record
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'jquery-rails'
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
gem 'devise'
gem 'acts_as_votable', '~> 0.11.1'
gem 'bootstrap', '~> 4.1.1'
gem 'simple_form'
gem 'tinymce-rails-imageupload', github: 'PerfectlyNormal/tinymce-rails-imageupload'
gem 'will_paginate'
gem 'carrierwave'
gem 'mini_magick'
gem 'fog'
gem 'foundation-rails'
gem 'autoprefixer-rails'
gem 'pg'
gem "aws-sdk-s3", require: false
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15', '< 4.0'
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'chromedriver-helper'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Procfile
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-production}
puma.rb
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
threads threads_count, threads_count
preload_app!
rackup DefaultRackup
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
on_worker_boot do
# Worker specific setup for Rails 4.1+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
end
The problem was the environment and port are already defined in puma.rb, and it need not be defined again in the Procfile. Hence the Procfile should look something like this
web: bundle exec puma -C config/puma.rb

Related

Ruby update stack from Cedar14 to heroku18

I recently update my ruby heroku app from stack cedar14 to heroku18 and I'm facing issue that I can't identify. I'm beginner in ruby's app and I'm totaly lost.
My home page display filter and I don't succeed to display them since I changed the stack app.
Here the app in production in cedar14
App with filters
Here the app in preproduction in heroku18
App without filters
I don't have any error in logs :
2020-03-30T13:06:34.534548+00:00 app[web.1]: Started GET "/filters" for 87.231.123.63 at 2020-03-30 13:06:34 +0000
2020-03-30T13:06:34.535709+00:00 app[web.1]: Processing by FiltersController#getallfilters as JSON
2020-03-30T13:06:34.582362+00:00 app[web.1]: Started GET "/images/spie.svg" for 87.231.123.63 at 2020-03-30 13:06:34 +0000
2020-03-30T13:06:34.584035+00:00 app[web.1]: Started GET "/images/spinner-57f23599cb45c2f22942f6157e01715a.gif" for 87.231.123.63 at 2020-03-30 13:06:34 +0000
2020-03-30T13:06:34.586593+00:00 app[web.1]: Started GET "/assets/fonts/DINPro-Regular_13937.woff" for 87.231.123.63 at 2020-03-30 13:06:34 +0000
2020-03-30T13:06:34.590706+00:00 heroku[router]: at=info method=GET path="/images/spie.svg" host=spie-refcom-preprod.herokuapp.com request_id=98860672-df27-4df1-8bef-c9dc126a21b3 fwd="87.231.123.63" dyno=web.1 connect=0ms service=3ms status=304 bytes=160 protocol=https
2020-03-30T13:06:34.594801+00:00 heroku[router]: at=info method=GET path="/assets/fonts/DINPro-Regular_13937.woff" host=spie-refcom-preprod.herokuapp.com request_id=21630fcf-1d62-450c-8883-759f5222df62 fwd="87.231.123.63" dyno=web.1 connect=0ms service=2ms status=304 bytes=160 protocol=https
2020-03-30T13:06:34.675533+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=spie-refcom-preprod.herokuapp.com request_id=a5636f66-ff00-47a6-9461-8da7a764e097 fwd="87.231.123.63" dyno=web.1 connect=0ms service=1ms status=200 bytes=143 protocol=https
2020-03-30T13:06:34.591020+00:00 heroku[router]: at=info method=GET path="/images/spinner-57f23599cb45c2f22942f6157e01715a.gif" host=spie-refcom-preprod.herokuapp.com request_id=15f55626-d47d-40ba-a4b7-b4bf808b528e fwd="87.231.123.63" dyno=web.1 connect=0ms service=3ms status=304 bytes=160 protocol=https
2020-03-30T13:06:44.547528+00:00 app[web.1]: Read fragment views/spie-refcom-preprod.herokuapp.com/filters.json (10010.8ms)
2020-03-30T13:06:44.547621+00:00 app[web.1]: on geAllFilters
2020-03-30T13:06:45.438362+00:00 app[web.1]: &&&&&&&& after push 1
2020-03-30T13:06:45.624412+00:00 app[web.1]: &&&&&&&& after push 2
2020-03-30T13:06:45.796600+00:00 app[web.1]: &&&&&&&& after push 3
2020-03-30T13:06:46.104284+00:00 app[web.1]: &&&&&&&& after push 4
2020-03-30T13:06:46.457596+00:00 app[web.1]: &&&&&&&& after push 5
2020-03-30T13:06:46.890757+00:00 app[web.1]: &&&&&&&& after push 6
2020-03-30T13:06:47.848542+00:00 app[web.1]: &&&&&&&& after push 7
2020-03-30T13:06:48.225331+00:00 app[web.1]: &&&&&&&& after push 8
2020-03-30T13:06:48.225346+00:00 app[web.1]: &&&&&&&& after push 9
2020-03-30T13:06:48.609348+00:00 app[web.1]: &&&&&&&& after push 10
2020-03-30T13:06:48.993956+00:00 app[web.1]: &&&&&&&& after push 11
2020-03-30T13:06:49.360942+00:00 app[web.1]: &&&&&&&& after push 12
2020-03-30T13:06:49.722752+00:00 app[web.1]: &&&&&&&& after push 13
2020-03-30T13:06:50.147104+00:00 app[web.1]: &&&&&&&& after push 14
2020-03-30T13:06:50.646333+00:00 app[web.1]: &&&&&&&& after push 15
2020-03-30T13:06:51.193571+00:00 app[web.1]: &&&&&&&& after push 16
2020-03-30T13:06:51.492277+00:00 app[web.1]: &&&&&&&& after push 17
2020-03-30T13:06:51.819438+00:00 app[web.1]: &&&&&&&& after push 18
2020-03-30T13:06:52.138349+00:00 app[web.1]: &&&&&&&& after push 19
2020-03-30T13:06:52.437847+00:00 app[web.1]: &&&&&&&& after push 20
2020-03-30T13:06:52.774590+00:00 app[web.1]: &&&&&&&& after push 21
2020-03-30T13:06:52.774598+00:00 app[web.1]: &&&&&&&& after push 22
2020-03-30T13:06:52.774599+00:00 app[web.1]: &&&&&&&& END RENDER
2020-03-30T13:06:52.774625+00:00 app[web.1]: {"id"=>"1", "name"=>"subsidiary", "className"=>"subsidiary", "choices"=>["BU0007", "BUSUK", "BUSOGS", "BUSBEL", "BUSNL", "BUSICS", "BUSHQ", "BUOTHER", "BUSCH", "BU0041", "BU0042", "BU0020", "BUDZE", "BU0063", "BU0064", "BU0065", "BU0066"], "needTranslation"=>true}
2020-03-30T13:06:52.774630+00:00 app[web.1]: {"id"=>"2", "name"=>"customer", "className"=>"subsidiary", "choices"=>[], "needTranslation"=>false}
2020-03-30T13:06:52.774633+00:00 app[web.1]: {"id"=>"3", "name"=>"location", "className"=>"subsidiary", "choices"=>[], "needTranslation"=>false}
2020-03-30T13:06:52.774677+00:00 app[web.1]: {"id"=>"4", "name"=>"client_sector", "className"=>"subsidiary", "choices"=>["C01", "C02", "C03", "C04", "C05", "C06"], "needTranslation"=>true}
2020-03-30T13:06:52.774679+00:00 app[web.1]: {"id"=>"5", "name"=>"activity", "className"=>"subsidiary", "choices"=>["E1", "E2", "E3"], "needTranslation"=>true}
2020-03-30T13:06:52.774718+00:00 app[web.1]: {"id"=>"6", "name"=>"skill", "className"=>"subsidiary", "choices"=>["E11", "E12", "E13", "E41", "E42", "E43", "E44", "E45", "E61", "E62", "E63", "E64", "E65", "E66"], "needTranslation"=>true}
2020-03-30T13:06:52.774744+00:00 app[web.1]: {"id"=>"7", "name"=>"amount", "className"=>"subsidiary", "choices"=>["<= 100 K€", "100 K€ - 500 K€", "500 K€ - 1 M€", "1 M€ - 3 M€", "3 M€ - 5 M€", "5 M€ - 10 M€", "10 M€ - 20 M€", "> 20 M€"], "needTranslation"=>true}
2020-03-30T13:06:52.774764+00:00 app[web.1]: {"id"=>"8", "name"=>"duration_range", "className"=>"subsidiary", "choices"=>["< 1", "1 - 3", "3 - 5", "> 5"], "needTranslation"=>false}
2020-03-30T13:06:52.774766+00:00 app[web.1]: {"id"=>"9", "name"=>"period_start_end_contract", "className"=>"subsidiary", "choices"=>[], "needTranslation"=>false}
2020-03-30T13:06:52.774827+00:00 app[web.1]: {"id"=>"10", "name"=>"sector_public_private", "className"=>"subsidiary", "choices"=>["0", "-1"], "needTranslation"=>true}
2020-03-30T13:06:52.774828+00:00 app[web.1]: {"id"=>"11", "name"=>"account_type", "className"=>"subsidiary", "choices"=>["CL01", "CL02", "CL03", "CL04", "CL05", "CL06", "CL07", "CL08", "CL09", "CL10"], "needTranslation"=>true}
2020-03-30T13:06:52.774833+00:00 app[web.1]: {"id"=>"12", "name"=>"contract_type", "className"=>"subsidiary", "choices"=>["TC01", "TC02", "TC03", "TC04", "TC05"], "needTranslation"=>true}
2020-03-30T13:06:52.774854+00:00 app[web.1]: {"id"=>"13", "name"=>"phase", "className"=>"subsidiary", "choices"=>["UP0", "MI0", "DS0"], "needTranslation"=>true}
2020-03-30T13:06:52.774857+00:00 app[web.1]: {"id"=>"14", "name"=>"service_line", "className"=>"subsidiary", "choices"=>["AS0", "WS0", "CD0", "EP0"], "needTranslation"=>true}
2020-03-30T13:06:52.774917+00:00 app[web.1]: {"id"=>"15", "name"=>"prestation", "className"=>"subsidiary", "choices"=>["AS01", "AS02", "AS03", "AS04", "AS05", "AS06", "AS07", "AS08", "WS01", "WS02", "WS03", "WS04", "WS05", "WS06", "CD01", "CD02", "CD03", "CD04", "EP01", "EP02", "EP03", "EP04", "EP05", "EP06", "EP07", "EP08"], "needTranslation"=>true}
2020-03-30T13:06:52.774922+00:00 app[web.1]: {"id"=>"16", "name"=>"detail_phase", "className"=>"subsidiary", "choices"=>["UP01", "UP02", "MI01", "MI02", "DS01", "DS02", "DS03", "DS04", "DS05", "DS06", "DS07", "DS08", "DS09"], "needTranslation"=>true}
2020-03-30T13:06:52.774969+00:00 app[web.1]: {"id"=>"17", "name"=>"perimeter", "className"=>"subsidiary", "choices"=>["AUT01", "BI", "DC", "ENVUSR", "IP", "UCC"], "needTranslation"=>true}
2020-03-30T13:06:52.774991+00:00 app[web.1]: {"id"=>"18", "name"=>"techno_category", "className"=>"subsidiary", "choices"=>["AUT01", "BI1", "BI2", "DC1", "DC2", "DC3", "IP1", "IP2", "SEC", "UCC1", "UCC2", "UCC3"], "needTranslation"=>true}
2020-03-30T13:06:52.775006+00:00 app[web.1]: {"id"=>"19", "name"=>"das_service", "className"=>"subsidiary", "choices"=>["CONSEIL & INGENIERIE", "INFOGERANCE", "SERVICES OPERES & CLOUD", "AUTRES SERVICES"], "needTranslation"=>true}
2020-03-30T13:06:52.775044+00:00 app[web.1]: {"id"=>"20", "name"=>"service_category", "className"=>"subsidiary", "choices"=>["AUTRES SERVICES", "CONSEIL& ARCHITECTURE", "INFOGERANCE INFRA", "INFOGERANCE UTILISATEURS", "INGENIERIE PROJET", "MAINTENANCE", "SERVICES MANAGES, HEBERGES, CLOUD", "SERVICES OPERATEUR", "DEP", "INFOG5"], "needTranslation"=>true}
2020-03-30T13:06:52.775048+00:00 app[web.1]: {"id"=>"21", "name"=>"strategic_activity_domain", "className"=>"subsidiary", "choices"=>["TN", "TSE", "M", "DEM"], "needTranslation"=>true}
2020-03-30T13:06:52.775074+00:00 app[web.1]: {"id"=>"22", "name"=>"certificate_ability", "className"=>"subsidiary", "choices"=>["true", "false"], "needTranslation"=>true}
2020-03-30T13:06:52.787817+00:00 app[web.1]: [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::JsonApi (11.09ms)
2020-03-30T13:07:02.799924+00:00 app[web.1]: Write fragment views/spie-refcom-preprod.herokuapp.com/filters.json (10011.6ms)
2020-03-30T13:07:02.800227+00:00 app[web.1]: Completed 200 OK in 28264ms (Views: 12.2ms)
2020-03-30T13:07:02.810605+00:00 heroku[router]: at=info method=GET path="/filters" host=spie-refcom-preprod.herokuapp.com request_id=528f5bf9-d23e-475b-9e0f-f46974406843 fwd="87.231.123.63" dyno=web.1 connect=0ms service=28268ms status=200 bytes=4859 protocol=https
2020-03-30T13:06:02+00:00 app[heroku-redis]: source=REDIS addon=redis-flat-8235 sample#active-connections=1 sample#load-avg-1m=0.095 sample#load-avg-5m=0.11 sample#load-avg-15m=0.095 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15664264kB sample#memory-free=12345944kB sample#memory-cached=1200884kB sample#memory-redis=308928bytes sample#hit-rate=0.42857 sample#evicted-keys=0
2020-03-30T13:06:02+00:00 app[heroku-redis]: source=REDIS addon=redis-flat-8235 sample#active-connections=1 sample#load-avg-1m=0.18 sample#load-avg-5m=0.115 sample#load-avg-15m=0.095 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15664264kB sample#memory-free=12346192kB sample#memory-cached=1200888kB sample#memory-redis=308928bytes sample#hit-rate=0.42857 sample#evicted-keys=0
Here you can find app structure :
App
Here the gem file :
source 'https://rubygems.org'
ruby '2.6.5'
gem 'dotenv-rails', :groups => [:development, :test]
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '>= 4.2.5.1'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
gem 'ember-cli-rails'
gem 'restforce'
gem 'responders'
gem 'active_model_serializers', '~> 0.10.0'
gem 'json'
gem 'actionpack-action_caching'
gem 'redis-rails'
gem 'postmark-rails'
gem 'rack-attack'
gem 'tzinfo-data'
# Cross-Origin Resource Sharing
gem 'rack-cors', :require => 'rack/cors'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
group :production do
gem 'pg'
gem 'puma'
end
gem 'rails_12factor', group: [:staging, :production]
Can someone help me??
I know that's not an easy mission :p !
Regards,
Antoine.

Can't deploy a basic Rails app on Heroku

First of all I am a newbie with Ruby on Rails so sorry if the question seem stupid.
I am following a tutorial about Heroku for Rails app and when I run git push heroku master and go to check on the actual website, I get this message:
We're sorry, but something went wrong. If you are the application owner check the logs for more information.
When I run heroku logs in my console, I get the following:
2018-05-20T03:33:23.748800+00:00 app[api]: Enable Logplex by user xxx.romain#gmail.com
2018-05-20T03:33:23.554110+00:00 app[api]: Release v1 created by user xxx.romain#gmail.com
2018-05-20T03:33:23.748800+00:00 app[api]: Release v2 created by user xxx.romain#gmail.com
2018-05-20T03:33:23.554110+00:00 app[api]: Initial release by user xxx.romain#gmail.com
2018-05-20T03:33:46.000000+00:00 app[api]: Build started by user xxx.romain#gmail.com
2018-05-20T03:34:29.457658+00:00 app[api]: Set LANG, RACK_ENV, RAILS_ENV, RAILS_LOG_TO_STDOUT, RAILS_SERVE_STATIC_FILES, SECRET_KEY_BASE config vars by user xxx.romain#gmail.com
2018-05-20T03:34:29.457658+00:00 app[api]: Release v3 created by user xxx.romain#gmail.com
2018-05-20T03:34:30.828730+00:00 app[api]: Release v4 created by user xxx.romain#gmail.com
2018-05-20T03:34:30.828730+00:00 app[api]: Attach DATABASE (#ref:postgresql-tapered-27211) by user xxx.romain#gmail.com
2018-05-20T03:34:31.131189+00:00 app[api]: Scaled to console#0:Free rake#0:Free web#1:Free worker#0:Free by user xxx.romain#gmail.com
2018-05-20T03:34:31.115804+00:00 app[api]: Release v5 created by user xxx.romain#gmail.com
2018-05-20T03:34:31.115804+00:00 app[api]: Deploy 0248e11a by user xxx.romain#gmail.com
2018-05-20T03:34:31.000000+00:00 app[api]: Build succeeded
2018-05-20T03:34:36.168184+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 57618 -e production`
2018-05-20T03:34:41.855283+00:00 app[web.1]: => Booting Puma
2018-05-20T03:34:41.855302+00:00 app[web.1]: => Rails 5.1.6 application starting in production
2018-05-20T03:34:41.855303+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-05-20T03:34:41.855305+00:00 app[web.1]: Puma starting in single mode...
2018-05-20T03:34:41.855313+00:00 app[web.1]: * Version 3.11.4 (ruby 2.3.4-p301), codename: Love Song
2018-05-20T03:34:41.855315+00:00 app[web.1]: * Min threads: 5, max threads: 5
2018-05-20T03:34:41.855316+00:00 app[web.1]: * Environment: production
2018-05-20T03:34:41.855503+00:00 app[web.1]: * Listening on tcp://0.0.0.0:57618
2018-05-20T03:34:41.855969+00:00 app[web.1]: Use Ctrl-C to stop
2018-05-20T03:34:42.411033+00:00 heroku[web.1]: State changed from starting to up
2018-05-20T03:34:43.450895+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] Started GET "/" for 27.32.8.50 at 2018-05-20 03:34:43 +0000
2018-05-20T03:34:43.487004+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] Rendering keywords/index.html.erb within layouts/application
2018-05-20T03:34:43.463124+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] Processing by KeywordsController#index as HTML
2018-05-20T03:34:44.722888+00:00 heroku[router]: at=info method=GET path="/" host=tweetscoperm.herokuapp.com request_id=5a2cc1ab-9701-42e6-accc-2f372ff837f1 fwd="27.32.8.50" dyno=web.1 connect=1ms service=1278ms status=500 bytes=1827 protocol=https
2018-05-20T03:34:44.715829+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] Keyword Load (2.3ms) SELECT "keywords".* FROM "keywords"
2018-05-20T03:34:44.717471+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] Rendered keywords/index.html.erb within layouts/application (1230.3ms)
2018-05-20T03:34:44.717773+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] Completed 500 Internal Server Error in 1254ms (ActiveRecord: 33.5ms)
2018-05-20T03:34:44.719239+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1]
2018-05-20T03:34:44.720128+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] ActionView::Template::Error (PG::UndefinedTable: ERROR: relation "keywords" does not exist
2018-05-20T03:34:44.720132+00:00 app[web.1]: ^
2018-05-20T03:34:44.720130+00:00 app[web.1]: LINE 1: SELECT "keywords".* FROM "keywords"
2018-05-20T03:34:44.720134+00:00 app[web.1]: : SELECT "keywords".* FROM "keywords"):
2018-05-20T03:34:44.720461+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 11: </thead>
2018-05-20T03:34:44.720464+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 12:
2018-05-20T03:34:44.720466+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 13: <tbody>
2018-05-20T03:34:44.720468+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 14: <% #keywords.each do |keyword| %>
2018-05-20T03:34:44.720469+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 15: <tr>
2018-05-20T03:34:44.720471+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 16: <td><%= keyword.word %></td>
2018-05-20T03:34:44.720473+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] 17: <td><%= link_to 'Show', keyword %></td>
2018-05-20T03:34:44.720531+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1]
2018-05-20T03:34:44.720593+00:00 app[web.1]: [5a2cc1ab-9701-42e6-accc-2f372ff837f1] app/views/keywords/index.html.erb:14:in `_app_views_keywords_index_html_erb___2939922413078681924_23601960'
2018-05-20T03:34:45.523130+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=tweetscoperm.herokuapp.com request_id=ec46bf49-b91c-4bf2-b017-a15b4cef63a8 fwd="27.32.8.50" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https
Looking at that, I couldn't find any reason that would cause a problem.
So far, here is how my database.yml file looks like:
development:
adapter: postgresql
database: tscope_dev
pool: 5
timeout: 5000
test:
adapter: postgresql
database: tscope_test
pool: 5
timeout: 5000
production:
adapter: postgresql
database: tscope_production
pool: 5
timeout: 5000
And my gemfile:
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use sqlite3 as the database for Active Record
# gem 'sqlite3'
# Using PostgreSQL as DB
gem 'pg'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
gem 'rails_12factor', group: :production
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
ruby '2.3.4'
I created the databse and did the migrations and also ran bundle install as well. It is the most basic application with just one controller generated with a scaffold.
Does anybody has any idea of what could be the problem? Even the smallest tip would help me since I really don't know what to look at right now.
If you need any futher information about my code, feel free to ask.
Thanks in advance :)
EDIT
Solved this issue by running heroku run rake db:migratein the console.
Turned out I haven't ran the migration on Heroku.
This line:
ActionView::Template::Error (PG::UndefinedTable: ERROR: relation "keywords" does not exist
suggests you haven't run your migrations on heroku.
To do that, in your console do:
heroku run rake db:migrate

Heroku error with controllers Rails

Heroku logs.
When i opened my db in heidi I don't have data.
I trying to do heroku db:migrate lalaala, nothing help.
2016-11-04T09:07:16.038403+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-harbor-22464.herokuapp.com request_id=c24ec075-dab5-4e41-b3ea-2ecc1a77e281 fwd="93.116.117.194" dyno=web.1 connect=1ms service=74ms status=404 bytes=1829
2016-11-04T09:07:15.970326+00:00 app[web.1]: Started GET "/" for 93.116.117.194 at 2016-11-04 09:07:15 +0000
2016-11-04T09:07:16.020369+00:00 app[web.1]: Processing by PagesController#home as HTML
2016-11-04T09:07:16.029704+00:00 app[web.1]: Completed 404 Not Found in 9ms
2016-11-04T09:07:16.034213+00:00 app[web.1]:
2016-11-04T09:07:16.034215+00:00 app[web.1]: ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=1):
2016-11-04T09:07:16.034216+00:00 app[web.1]: app/controllers/pages_controller.rb:3:in `home'
2016-11-04T09:07:16.034216+00:00 app[web.1]:
2016-11-04T09:07:16.034217+00:00 app[web.1]:
2016-11-04T09:07:24.790355+00:00 heroku[router]: at=info method=GET path="/products" host=mysterious-harbor-22464.herokuapp.com request_id=e8c2944c-aac8-4255-a7a5-46baf6f4bac0 fwd="93.116.117.194" dyno=web.1 connect=1ms service=60ms status=404 bytes=1829
2016-11-04T09:07:24.734996+00:00 app[web.1]: Started GET "/products" for 93.116.117.194 at 2016-11-04 09:07:24 +0000
2016-11-04T09:07:24.740508+00:00 app[web.1]: Processing by ProductsController#index as HTML
2016-11-04T09:07:24.772436+00:00 app[web.1]: Completed 404 Not Found in 32ms
2016-11-04T09:07:24.783327+00:00 app[web.1]:
2016-11-04T09:07:24.783329+00:00 app[web.1]: ActiveRecord::RecordNotFound (Couldn't find User with 'id'=3):
2016-11-04T09:07:24.783331+00:00 app[web.1]:
2016-11-04T09:07:24.783330+00:00 app[web.1]: app/controllers/products_controller.rb:12:in `index'
2016-11-04T09:07:24.783331+00:00 app[web.1]:
2016-11-04T09:07:28.564684+00:00 heroku[router]: at=info method=GET path="/products/new" host=mysterious-harbor-22464.herokuapp.com request_id=c7d08df4-d09f-402b-b6f8-c47c69657c16 fwd="93.116.117.194" dyno=web.1 connect=1ms service=26ms status=404 bytes=1829
2016-11-04T09:07:28.543652+00:00 app[web.1]: Started GET "/products/new" for 93.116.117.194 at 2016-11-04 09:07:28 +0000
2016-11-04T09:07:28.548321+00:00 app[web.1]: Processing by ProductsController#new as HTML
2016-11-04T09:07:28.558331+00:00 app[web.1]: Completed 404 Not Found in 10ms
2016-11-04T09:07:28.560681+00:00 app[web.1]:
2016-11-04T09:07:28.560683+00:00 app[web.1]: ActiveRecord::RecordNotFound (Couldn't find User with 'id'=3):
2016-11-04T09:07:28.560684+00:00 app[web.1]: app/controllers/products_controller.rb:34:in `new'
2016-11-04T09:07:28.560684+00:00 app[web.1]:
2016-11-04T09:07:28.560685+00:00 app[web.1]:
2016-11-04T09:41:09.782908+00:00 heroku[web.1]: Idling
2016-11-04T09:41:09.783495+00:00 heroku[web.1]: State changed from up to down
2016-11-04T09:41:12.388209+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2016-11-04T09:41:12.738903+00:00 app[web.1]: [2016-11-04 09:41:12] FATAL SignalException: SIGTERM
2016-11-04T09:41:12.738925+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:174:in `select'
2016-11-04T09:41:12.738930+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:174:in `block in start'
2016-11-04T09:41:12.738931+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:32:in `start'
2016-11-04T09:41:12.738932+00:00 app[web.1]: /app/vendor/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:162:in `start'
2016-11-04T09:41:12.738933+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:264:in `start'
2016-11-04T09:41:12.738934+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/commands/server.rb:69:in `start'
2016-11-04T09:41:12.738934+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:81:in `block in server'
2016-11-04T09:41:12.738935+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `tap'
2016-11-04T09:41:12.738932+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/rack-1.5.5/lib/rack/handler/webrick.rb:14:in `run'
2016-11-04T09:41:12.738937+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2016-11-04T09:41:12.738936+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `server'
2016-11-04T09:41:12.738937+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/railties-4.1.0/lib/rails/commands.rb:17:in `<top (required)>'
2016-11-04T09:41:12.738938+00:00 app[web.1]: bin/rails:9:in `require'
2016-11-04T09:41:12.738939+00:00 app[web.1]: bin/rails:9:in `<main>'
2016-11-04T09:41:12.738985+00:00 app[web.1]: [2016-11-04 09:41:12] INFO going to shutdown ...
2016-11-04T09:41:12.739033+00:00 app[web.1]: [2016-11-04 09:41:12] INFO WEBrick::HTTPServer#start done.
2016-11-04T09:41:12.739060+00:00 app[web.1]: Exiting
2016-11-04T09:41:13.019823+00:00 heroku[web.1]: Process exited with status 143
2016-11-04T19:44:35.838068+00:00 heroku[api]: Deploy 1b03d2a by gomacroice#gmail.com
2016-11-04T19:44:35.838166+00:00 heroku[api]: Release v30 created by gomacroice#gmail.com
2016-11-04T19:44:36.158956+00:00 heroku[web.1]: State changed from down to starting
2016-11-04T19:44:36.219145+00:00 heroku[slug-compiler]: Slug compilation started
2016-11-04T19:44:36.219153+00:00 heroku[slug-compiler]: Slug compilation finished
2016-11-04T19:44:39.148098+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 27508 -e production`
2016-11-04T19:44:41.106952+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.0/lib/active_support/values/time_zone.rb:285: warning: circular argument reference - now
2016-11-04T19:44:42.517126+00:00 app[web.1]: [2016-11-04 19:44:42] INFO ruby 2.2.4 (2015-12-16) [x86_64-linux]
2016-11-04T19:44:42.517492+00:00 app[web.1]: [2016-11-04 19:44:42] INFO WEBrick::HTTPServer#start: pid=3 port=27508
2016-11-04T19:44:42.517111+00:00 app[web.1]: [2016-11-04 19:44:42] INFO WEBrick 1.3.1
2016-11-04T19:44:43.090664+00:00 heroku[web.1]: State changed from starting to up
2016-11-04T19:45:07.206043+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-harbor-22464.herokuapp.com request_id=17f0024d-098e-4168-bc06-ae33b7ad206f fwd="109.185.120.41" dyno=web.1 connect=1ms service=99ms status=404 bytes=1829
2016-11-04T19:45:07.086186+00:00 app[web.1]: => Booting WEBrick
2016-11-04T19:45:07.086198+00:00 app[web.1]: => Rails 4.1.0 application starting in production on http://0.0.0.0:27508
2016-11-04T19:45:07.086199+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-11-04T19:45:07.086200+00:00 app[web.1]: => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
2016-11-04T19:45:07.086200+00:00 app[web.1]: => Ctrl-C to shutdown server
2016-11-04T19:45:07.086201+00:00 app[web.1]: Started GET "/" for 109.185.120.41 at 2016-11-04 19:45:07 +0000
2016-11-04T19:45:07.174573+00:00 app[web.1]: Completed 404 Not Found in 18ms
2016-11-04T19:45:07.156086+00:00 app[web.1]: Processing by PagesController#home as HTML
2016-11-04T19:45:07.175983+00:00 app[web.1]: ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=1):
2016-11-04T19:45:07.175982+00:00 app[web.1]:
2016-11-04T19:45:07.175984+00:00 app[web.1]: app/controllers/pages_controller.rb:3:in `home'
2016-11-04T19:45:07.175984+00:00 app[web.1]:
2016-11-04T19:45:07.175985+00:00 app[web.1]:
2016-11-04T19:45:07.802920+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-harbor-22464.herokuapp.com request_id=4a5e3335-f8e9-4bee-ad5e-6cbe984750d2 fwd="109.185.120.41" dyno=web.1 connect=1ms service=4ms status=200 bytes=228
2016-11-04T19:56:25.123706+00:00 heroku[api]: Starting process with command `bundle exec rake assets:precompile` by gomacroice#gmail.com
2016-11-04T19:56:28.551715+00:00 heroku[run.9872]: Awaiting client
2016-11-04T19:56:28.584068+00:00 heroku[run.9872]: Starting process with command `bundle exec rake assets:precompile`
2016-11-04T19:56:28.860508+00:00 heroku[run.9872]: State changed from starting to up
2016-11-04T19:56:33.081684+00:00 heroku[run.9872]: Process exited with status 0
2016-11-04T19:56:33.078485+00:00 heroku[run.9872]: State changed from up to complete
2016-11-04T19:56:44.878320+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-harbor-22464.herokuapp.com request_id=19341742-d312-45a0-b9fd-b3a4094f847b fwd="109.185.120.41" dyno=web.1 connect=1ms service=11ms status=404 bytes=1829
2016-11-04T19:56:44.854133+00:00 app[web.1]: Started GET "/" for 109.185.120.41 at 2016-11-04 19:56:44 +0000
2016-11-04T19:56:44.856628+00:00 app[web.1]: Processing by PagesController#home as HTML
2016-11-04T19:56:44.858663+00:00 app[web.1]: Completed 404 Not Found in 2ms
2016-11-04T19:56:44.860301+00:00 app[web.1]:
2016-11-04T19:56:44.860303+00:00 app[web.1]: ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=1):
2016-11-04T19:56:44.860303+00:00 app[web.1]: app/controllers/pages_controller.rb:3:in `home'
2016-11-04T19:56:44.860304+00:00 app[web.1]:
2016-11-04T19:56:44.860304+00:00 app[web.1]:
2016-11-04T19:56:45.454411+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-harbor-22464.herokuapp.com request_id=17b8e38a-f60b-4c0c-ba79-6ccd4db05245 fwd="109.185.120.41" dyno=web.1 connect=1ms service=3ms status=200 bytes=228
2016-11-04T20:00:20.764431+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-harbor-22464.herokuapp.com request_id=6b30c6ed-e74c-455a-99d8-7237181b7f57 fwd="109.185.120.41" dyno=web.1 connect=1ms service=45ms status=404 bytes=1829
2016-11-04T20:00:20.753310+00:00 app[web.1]: Started GET "/" for 109.185.120.41 at 2016-11-04 20:00:20 +0000
2016-11-04T20:00:20.755589+00:00 app[web.1]: Processing by PagesController#home as HTML
2016-11-04T20:00:20.758762+00:00 app[web.1]: Completed 404 Not Found in 3ms
2016-11-04T20:00:20.763281+00:00 app[web.1]:
2016-11-04T20:00:20.763283+00:00 app[web.1]: ActiveRecord::RecordNotFound (Couldn't find Plan with 'id'=1):
2016-11-04T20:00:20.763284+00:00 app[web.1]: app/controllers/pages_controller.rb:3:in `home'
2016-11-04T20:00:20.763285+00:00 app[web.1]:
2016-11-04T20:00:20.763285+00:00 app[web.1]:
2016-11-04T20:00:21.313178+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-harbor-22464.herokuapp.com request_id=22d79fbf-f47f-4724-a180-3f0381b9426a fwd="109.185.120.41" dyno=web.1 connect=1ms service=7ms status=200 bytes=228
gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', group: [:development, :test]
#Use postgresql as the database for production
group :production do
gem 'pg'
gem 'rails_12factor'
end
# Use SCSS for stylesheets
gem 'sass-rails', '4.0.3'
# Use bootsrap library for styles
gem 'bootstrap-sass', '3.3.1'
#Use font awesome library
gem 'font-awesome-sass', '4.5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', ' 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
# gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', ' 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', ' 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', group: :development
# Use devise for use authentication
gem 'devise','3.4.1'
# Use stripe for handaling payments
gem 'stripe', '1.16.1'
# Use figaro to hide secret keys
gem 'figaro', '1.0.0'
# Use Rmagic for pictures
gem 'rmagick', '~> 2.15', '>= 2.15.4'
gem 'carrierwave'
gem 'mini_magick'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
routes
Rails.application.routes.draw do
devise_for :users, controllers: { registrations: "users/registrations"}
resources :users do
resource :profile
end
resources :opsystems
resources :categories
resources :contacts
resources :admins
resources :products do
resources :comments
resources :pdfs
end
get '/about' => 'pages#about'
get '/products' => 'pages#products'
root 'pages#home'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
end

Error when pushing code to Heroku

I am running my app locally without issue. I created a heroku account and pushed my code up to heroku, however I am getting a general error saying "something went wrong" I pasted my heroku logs below...I am new to Heroku so I am not sure what the issue is here?
gemfile:
source 'https://rubygems.org'
ruby "2.1.5"
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.8'
# Use sqlite3 as the database for Active Record
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'bootstrap-sass'
gem "paperclip", "~> 4.3"
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development, :test do
gem 'sqlite3'
end
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin]
heroku logs:
Art West#ARTWESTIV /c/Sites
$ cd ~/desktop
Art West#ARTWESTIV ~/desktop
$ cd yahozzle
Art West#ARTWESTIV ~/desktop/yahozzle (master)
$ heroku logs
Your version of git is 1.9.4.. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
2015-12-18T21:29:15.599176+00:00 heroku[api]: Enable Logplex by art.westiv#gmail.com
2015-12-18T21:29:15.599176+00:00 heroku[api]: Release v2 created by art.westiv#gmail.com
2015-12-18T21:31:53.237831+00:00 heroku[api]: Set LANG, RAILS_ENV, RACK_ENV, SECRET_KEY_BASE config vars by art.westiv#gmail.com
2015-12-18T21:31:53.237888+00:00 heroku[api]: Release v3 created by art.westiv#gmail.com
2015-12-18T21:31:53.708634+00:00 heroku[api]: Release v4 created by art.westiv#gmail.com
2015-12-18T21:31:53.708634+00:00 heroku[api]: Attach DATABASE resource by art.westiv#gmail.com
2015-12-18T21:31:54.021633+00:00 heroku[api]: Scale to web=1 by art.westiv#gmail.com
2015-12-18T21:31:54.098158+00:00 heroku[api]: Deploy fa5366d by art.westiv#gmail.com
2015-12-18T21:31:54.098248+00:00 heroku[api]: Release v5 created by art.westiv#gmail.com
2015-12-18T21:31:54.415009+00:00 heroku[slug-compiler]: Slug compilation started
2015-12-18T21:31:54.415020+00:00 heroku[slug-compiler]: Slug compilation finished
2015-12-18T21:31:56.834536+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 26611 -e production`
2015-12-18T21:31:59.899640+00:00 app[web.1]: [2015-12-18 21:31:59] INFO WEBrick 1.3.1
2015-12-18T21:31:59.899656+00:00 app[web.1]: [2015-12-18 21:31:59] INFO ruby 2.1.5 (2014-11-13) [x86_64-linux]
2015-12-18T21:31:59.899909+00:00 app[web.1]: [2015-12-18 21:31:59] INFO WEBrick::HTTPServer#start: pid=3 port=26611
2015-12-18T21:32:00.158746+00:00 heroku[web.1]: State changed from starting to up
2015-12-18T21:33:25.989345+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by art.westiv#gmail.com
2015-12-18T21:33:28.792631+00:00 heroku[run.5244]: Awaiting client
2015-12-18T21:33:28.809492+00:00 heroku[run.5244]: Starting process with command `bundle exec rake db:migrate`
2015-12-18T21:33:32.849960+00:00 heroku[run.5244]: Process exited with status 0
2015-12-18T21:33:29.135341+00:00 heroku[run.5244]: State changed from starting to up
2015-12-18T21:34:04.260094+00:00 heroku[router]: at=info method=GET path="/" host=yahozzle.herokuapp.com request_id=8f3e052b-5e55-4822-ac3f-be728a04aacd fwd="206.123.254.90" dyno=web.1 connect=2ms service=62ms status=500 bytes=1754
2015-12-18T21:34:04.183773+00:00 app[web.1]: => Booting WEBrick
2015-12-18T21:34:04.183780+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-12-18T21:34:04.183778+00:00 app[web.1]: => Rails 4.1.8 application starting in production on http://0.0.0.0:26611
2015-12-18T21:34:04.183781+00:00 app[web.1]: => Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
2015-12-18T21:34:04.183782+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-12-18T21:34:04.183782+00:00 app[web.1]: Started GET "/" for 206.123.254.90 at 2015-12-18 21:34:04 +0000
2015-12-18T21:34:04.225082+00:00 app[web.1]: Processing by ListingsController#index as HTML
2015-12-18T21:34:04.238797+00:00 app[web.1]: Completed 500 Internal Server Error in 14ms
2015-12-18T21:34:04.236903+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (3.6ms)
2015-12-18T21:34:04.240033+00:00 app[web.1]: * "/app/app/views"
2015-12-18T21:34:04.240029+00:00 app[web.1]:
2015-12-18T21:34:04.240032+00:00 app[web.1]: ActionView::Template::Error (Missing partial Layouts/_header with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in:
2015-12-18T21:34:04.240034+00:00 app[web.1]: ):
2015-12-18T21:34:04.240034+00:00 app[web.1]: 8: </head>
2015-12-18T21:34:04.240035+00:00 app[web.1]: 9:
2015-12-18T21:34:04.240035+00:00 app[web.1]: 10: <body>
2015-12-18T21:34:04.240036+00:00 app[web.1]: 11: <%= render 'Layouts/header' %>
2015-12-18T21:34:04.240036+00:00 app[web.1]: 12: <div class="container">
2015-12-18T21:34:04.240037+00:00 app[web.1]: 13: <%= yield %>
2015-12-18T21:34:04.240038+00:00 app[web.1]: app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb__2488562101803348584_70335066715400'
2015-12-18T21:34:04.240037+00:00 app[web.1]: 14: <%= render 'Layouts/footer' %>
2015-12-18T21:34:04.240039+00:00 app[web.1]:
2015-12-18T21:34:04.240039+00:00 app[web.1]:
2015-12-18T21:34:04.722117+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=yahozzle.herokuapp.com request_id=f61364ff-7a3e-41c2-865c-51229d244cd1 fwd="206.123.254.90" dyno=web.1 connect=0ms service=3ms status=200 bytes=228
2015-12-18T21:35:06.875160+00:00 app[web.1]: Started GET "/" for 206.123.254.90 at 2015-12-18 21:35:06 +0000
2015-12-18T21:35:06.880338+00:00 app[web.1]: Rendered listings/index.html.erb within layouts/application (2.0ms)
2015-12-18T21:35:06.883137+00:00 app[web.1]:
2015-12-18T21:35:06.883142+00:00 app[web.1]: * "/app/app/views"
2015-12-18T21:35:06.883141+00:00 app[web.1]: ActionView::Template::Error (Missing partial Layouts/_header with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in:
2015-12-18T21:35:06.883143+00:00 app[web.1]: ):
2015-12-18T21:35:06.883144+00:00 app[web.1]: 9:
2015-12-18T21:35:06.883143+00:00 app[web.1]: 8: </head>
2015-12-18T21:35:06.883145+00:00 app[web.1]: 11: <%= render 'Layouts/header' %>
2015-12-18T21:35:06.883145+00:00 app[web.1]: 10: <body>
2015-12-18T21:35:06.883146+00:00 app[web.1]: 12: <div class="container">
2015-12-18T21:35:06.883147+00:00 app[web.1]: 14: <%= render 'Layouts/footer' %>
2015-12-18T21:35:06.883147+00:00 app[web.1]: 13: <%= yield %>
2015-12-18T21:35:06.883149+00:00 app[web.1]:
2015-12-18T21:35:06.883148+00:00 app[web.1]: app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb__2488562101803348584_70335066715400'
2015-12-18T21:35:06.883150+00:00 app[web.1]:
2015-12-18T21:35:06.877226+00:00 app[web.1]: Processing by ListingsController#index as HTML
2015-12-18T21:35:06.881799+00:00 app[web.1]: Completed 500 Internal Server Error in 4ms
2015-12-18T21:35:06.863666+00:00 heroku[router]: at=info method=GET path="/" host=yahozzle.herokuapp.com request_id=efaaeab9-ce24-4513-9e1d-7ebe584ef31a fwd="206.123.254.90" dyno=web.1 connect=1ms service=16ms status=500 bytes=1754
2015-12-18T21:35:07.337234+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=yahozzle.herokuapp.com request_id=0bb618cf-9bbe-402e-81bb-973771eca373 fwd="206.123.254.90" dyno=web.1 connect=1ms service=4ms status=200 bytes=228
Your logs show the error - the application tries to render partials it cannot find. Pay attention to file name's case - Heroku's filesystem is case sensitive, and my guess is that you have a directory app/views/layouts but in your erb files you refer to it as Layouts.
The last error it logged is:
ActionView::Template::Error (Missing partial Layouts/_header with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in:
* "/app/app/views"
app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb
I suggest checking to see if you committed the _header partial so that it pushes to Heroku, or checking to see if the partial is named correctly and not a typo. You can ssh into the Heroku server to check if the file exists:
heroku run bash
Then, just cd into the views directory and ls to list its contents to find the file, make sure it's in the spot you expected.
The other issue is given here:
Your version of git is 1.9.4.. Which has serious security vulnerabilities.
More information here: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x
You can read about that at the given url: https://blog.heroku.com/archives/2014/12/23/update_your_git_clients_on_windows_and_os_x

heroku/rails deployment

I am following Hartl's tutorial and am having trouble pushing to heroku after chapter 5. I am getting the error "We're sorry, something went wrong. And I have read 10-15 other stackoverflow questions about it and none of their solutions helped me. I have run
RAILS_ENV=production bundle exec rake assets:precompile
and
heroku run rake db:migrate
I have included my heroku log errors and Gemfile beolow. Thanks!
2013-03-05T16:02:17+00:00 heroku[run.7311]: Starting process with command `bundle exec rake db:migrate`
2013-03-05T16:02:17+00:00 heroku[run.7311]: Awaiting client
2013-03-05T16:02:17+00:00 heroku[run.7311]: State changed from starting to up
2013-03-05T16:02:21+00:00 heroku[run.7311]: Client connection closed. Sending SIGHUP to all processes
2013-03-05T16:02:22+00:00 heroku[run.7311]: Process exited with status 0
2013-03-05T16:02:22+00:00 heroku[run.7311]: State changed from up to complete
.
.
.
2013-03-05T16:15:23+00:00 heroku[run.8755]: Awaiting client
2013-03-05T16:15:23+00:00 heroku[run.8755]: Starting process with command `bundle exec rake db:drop`
2013-03-05T16:15:23+00:00 heroku[run.8755]: State changed from starting to up
2013-03-05T16:15:25+00:00 heroku[run.8755]: Client connection closed. Sending SIGHUP to all processes
2013-03-05T16:15:27+00:00 heroku[run.8755]: State changed from up to complete
2013-03-05T16:15:27+00:00 heroku[run.8755]: Process exited with status 0
2013-03-05T16:16:01+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by zyskowski.rob#gmail.com
2013-03-05T16:16:03+00:00 heroku[run.8187]: Awaiting client
2013-03-05T16:16:03+00:00 heroku[run.8187]: Starting process with command `bundle exec rake db:migrate`
2013-03-05T16:16:03+00:00 heroku[run.8187]: State changed from starting to up
2013-03-05T16:16:09+00:00 heroku[run.8187]: Process exited with status 0
2013-03-05T16:16:09+00:00 heroku[run.8187]: State changed from up to complete
Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.12'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :production, :staging do
gem "pg"
end
group :development, :test do
gem "sqlite3-ruby", :require => "sqlite3"
end
group :development do
gem 'rspec-rails'
end
group :test do
gem 'rspec'
gem 'webrat'
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'
after updating my Gemfile as above my heroku logs look nicer but I am still having the same problem. Here are my most recent heroku logs:
2013-03-05T16:21:24+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-03-05T16:21:25+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-03-05T16:21:25+00:00 app[web.1]: [2013-03-05 16:21:25] ERROR SignalException: SIGTERM
2013-03-05T16:21:32+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-03-05T16:21:32+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-03-05T16:21:35+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-03-05T16:21:35+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-03-05T16:21:37+00:00 heroku[web.1]: Process exited with status 137
2013-03-05T16:21:39+00:00 app[web.1]: [2013-03-05 16:21:39] INFO WEBrick 1.3.1
2013-03-05T16:21:39+00:00 app[web.1]: [2013-03-05 16:21:39] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-05T16:21:39+00:00 app[web.1]: [2013-03-05 16:21:39] INFO WEBrick::HTTPServer#start: pid=2 port=28050
2013-03-05T16:21:40+00:00 heroku[web.1]: State changed from starting to up
2013-03-05T16:23:08+00:00 app[web.1]: => Booting WEBrick
2013-03-05T16:23:08+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:28050
2013-03-05T16:23:08+00:00 app[web.1]: Started GET "/" for 173.28.201.119 at 2013-03-05 16:23:08 +0000
2013-03-05T16:23:08+00:00 app[web.1]: => Call with -d to detach
2013-03-05T16:23:08+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-05T16:23:09+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-05T16:23:09+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-05T16:23:09+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (7.7ms)
2013-03-05T16:23:09+00:00 app[web.1]: Completed 500 Internal Server Error in 82ms
2013-03-05T16:23:09+00:00 app[web.1]:
2013-03-05T16:23:09+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (15.1ms)
2013-03-05T16:23:09+00:00 app[web.1]: ActionView::Template::Error (blueprint/screen.css isn't precompiled):
2013-03-05T16:23:09+00:00 app[web.1]: 2: <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2013-03-05T16:23:09+00:00 app[web.1]: 1: <!--[if lt IE 9]-->
2013-03-05T16:23:09+00:00 app[web.1]: 3: <!--[endif]-->
2013-03-05T16:23:09+00:00 app[web.1]: 4: <%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
2013-03-05T16:23:09+00:00 app[web.1]: 5: <%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
2013-03-05T16:23:09+00:00 app[web.1]: 6: <!--[if lt IE 8]><%= stylesheet_link_tag 'blueprint/ie' %><![endif]-->
2013-03-05T16:23:09+00:00 app[web.1]: app/views/layouts/_stylesheets.html.erb:4:in `_app_views_layouts__stylesheets_html_erb___2240892464821239054_34301780'
2013-03-05T16:23:09+00:00 app[web.1]: 7: <%= stylesheet_link_tag 'custom', :media => 'screen' %>
2013-03-05T16:23:09+00:00 app[web.1]: app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__3847180770533719708_34372820'
2013-03-05T16:23:09+00:00 app[web.1]:
2013-03-05T16:23:09+00:00 app[web.1]:
2013-03-05T16:23:09+00:00 heroku[router]: at=info method=GET path=/ host=stark-mesa-9938.herokuapp.com fwd="173.28.201.119" dyno=web.1 queue=0 wait=0ms connect=1ms service=823ms status=500 bytes=643
2013-03-05T16:23:10+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=stark-mesa-9938.herokuapp.com fwd="173.28.201.119" dyno=web.1 queue=0 wait=5ms connect=17ms service=20ms status=200 bytes=0
2013-03-05T16:25:55+00:00 app[web.1]: Started GET "/" for 173.28.201.119 at 2013-03-05 16:25:55 +0000
2013-03-05T16:25:55+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-05T16:25:56+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (2.7ms)
2013-03-05T16:25:56+00:00 app[web.1]: Completed 500 Internal Server Error in 5ms
2013-03-05T16:25:56+00:00 app[web.1]: ActionView::Template::Error (blueprint/screen.css isn't precompiled):
2013-03-05T16:25:56+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (0.7ms)
2013-03-05T16:25:56+00:00 app[web.1]:
2013-03-05T16:25:56+00:00 app[web.1]: 1: <!--[if lt IE 9]-->
2013-03-05T16:25:56+00:00 app[web.1]: 2: <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2013-03-05T16:25:56+00:00 app[web.1]: 3: <!--[endif]-->
2013-03-05T16:25:56+00:00 app[web.1]: 5: <%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
2013-03-05T16:25:56+00:00 app[web.1]: 4: <%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
2013-03-05T16:25:56+00:00 app[web.1]: 6: <!--[if lt IE 8]><%= stylesheet_link_tag 'blueprint/ie' %><![endif]-->
2013-03-05T16:25:56+00:00 app[web.1]: 7: <%= stylesheet_link_tag 'custom', :media => 'screen' %>
2013-03-05T16:25:56+00:00 app[web.1]:
2013-03-05T16:25:56+00:00 app[web.1]:
2013-03-05T16:25:56+00:00 app[web.1]: app/views/layouts/_stylesheets.html.erb:4:in `_app_views_layouts__stylesheets_html_erb___2240892464821239054_34301780'
2013-03-05T16:25:56+00:00 app[web.1]: app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__3847180770533719708_34372820'
2013-03-05T16:25:56+00:00 heroku[router]: at=info method=GET path=/ host=stark-mesa-9938.herokuapp.com fwd="173.28.201.119" dyno=web.1 queue=0 wait=0ms connect=6ms service=19ms status=500 bytes=643
2013-03-05T16:25:56+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=stark-mesa-9938.herokuapp.com fwd="173.28.201.119" dyno=web.1 queue=0 wait=0ms connect=1ms service=7ms status=304 bytes=0
2013-03-05T17:30:26+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-03-05T17:30:27+00:00 app[web.1]: [2013-03-05 17:30:27] ERROR SignalException: SIGTERM
2013-03-05T17:30:27+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2013-03-05T17:30:36+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2013-03-05T17:30:36+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2013-03-05T17:30:38+00:00 heroku[web.1]: Process exited with status 137
2013-03-05T17:30:38+00:00 heroku[web.1]: State changed from up to down
2013-03-05T18:07:49+00:00 heroku[slugc]: Slug compilation started
2013-03-05T18:09:15+00:00 heroku[api]: Release v14 created by zyskowski.rob#gmail.com
2013-03-05T18:09:15+00:00 heroku[api]: Deploy b3805c8 by zyskowski.rob#gmail.com
2013-03-05T18:09:15+00:00 heroku[web.1]: State changed from down to starting
2013-03-05T18:09:16+00:00 heroku[slugc]: Slug compilation finished
2013-03-05T18:09:18+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 14406`
2013-03-05T18:09:23+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-03-05T18:09:23+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-03-05T18:09:31+00:00 app[web.1]: [2013-03-05 18:09:31] INFO WEBrick 1.3.1
2013-03-05T18:09:31+00:00 app[web.1]: [2013-03-05 18:09:31] INFO WEBrick::HTTPServer#start: pid=2 port=14406
2013-03-05T18:09:31+00:00 app[web.1]: [2013-03-05 18:09:31] INFO ruby 1.9.2 (2011-07-09) [x86_64-linux]
2013-03-05T18:09:35+00:00 heroku[web.1]: State changed from starting to up
2013-03-05T18:09:38+00:00 app[web.1]: Started GET "/" for 129.255.225.74 at 2013-03-05 18:09:38 +0000
2013-03-05T18:09:38+00:00 app[web.1]: => Booting WEBrick
2013-03-05T18:09:38+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:14406
2013-03-05T18:09:38+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-03-05T18:09:38+00:00 app[web.1]: => Call with -d to detach
2013-03-05T18:09:39+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2013-03-05T18:09:40+00:00 app[web.1]: Processing by PagesController#home as HTML
2013-03-05T18:09:40+00:00 app[web.1]: Rendered pages/home.html.erb within layouts/application (10.3ms)
2013-03-05T18:09:40+00:00 app[web.1]: Rendered layouts/_stylesheets.html.erb (17.1ms)
2013-03-05T18:09:40+00:00 app[web.1]: Completed 500 Internal Server Error in 135ms
2013-03-05T18:09:40+00:00 app[web.1]: ActionView::Template::Error (blueprint/screen.css isn't precompiled):
2013-03-05T18:09:40+00:00 app[web.1]: 1: <!--[if lt IE 9]-->
2013-03-05T18:09:40+00:00 app[web.1]: 2: <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2013-03-05T18:09:40+00:00 app[web.1]: 3: <!--[endif]-->
2013-03-05T18:09:40+00:00 app[web.1]: 4: <%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
2013-03-05T18:09:40+00:00 app[web.1]:
2013-03-05T18:09:40+00:00 app[web.1]: 5: <%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>
2013-03-05T18:09:40+00:00 heroku[router]: at=info method=GET path=/ host=stark-mesa-9938.herokuapp.com fwd="129.255.225.74" dyno=web.1 queue=0 wait=0ms connect=4ms service=4384ms status=500 bytes=643
2013-03-05T18:09:40+00:00 app[web.1]: 6: <!--[if lt IE 8]><%= stylesheet_link_tag 'blueprint/ie' %><![endif]-->
2013-03-05T18:09:40+00:00 app[web.1]: 7: <%= stylesheet_link_tag 'custom', :media => 'screen' %>
2013-03-05T18:09:40+00:00 app[web.1]: app/views/layouts/_stylesheets.html.erb:4:in `_app_views_layouts__stylesheets_html_erb___158571620836036303_35162880'
2013-03-05T18:09:40+00:00 app[web.1]: app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___3114180369605444575_34223240'
2013-03-05T18:09:40+00:00 app[web.1]:
2013-03-05T18:09:40+00:00 app[web.1]:
2013-03-05T18:09:42+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=stark-mesa-9938.herokuapp.com fwd="129.255.225.74" dyno=web.1 queue=0 wait=10ms connect=46ms service=1187ms status=200 bytes=0
This is assets precompile problem, so please precompile assets in local and change the settings on environments for check precompile then deploy.
are you using the second edition of the tutorial? If you are, this is my Gemfile for until chapter 7, exactly as recommended for the tutorials. Might be having incompatibilities?
source 'https://rubygems.org'
gem 'rails', '3.2.12'
gem 'bootstrap-sass', '2.1'
gem 'bcrypt-ruby', '3.0.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'childprocess', '0.3.6'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.11.0'
gem 'guard-rspec', '1.2.1'
gem 'guard-spork', '1.2.0'
gem 'spork', '0.9.2'
end
group :development do
gem 'annotate', '2.5.0'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.5'
gem 'coffee-rails', '3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.2.3'
end
gem 'jquery-rails', '2.0.2'
group :test do
gem 'capybara', '1.1.2'
gem 'rb-fsevent', '0.9.1', :require => false
gem 'growl', '1.0.3'
gem 'factory_girl_rails', '4.1.0'
end
group :production do
gem 'pg', '0.12.2'
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
I can't add comments to your question so I'm asking here.
Are you following the latest edition of the book?
2013-03-05T18:09:23+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-03-05T18:09:23+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)
hints that you are using vendor plugins. The current edition does not include usage of vendor plugins (as far as chapter 7 at least). If you are using an older edition, the syntex might have changed ever so slightly to cause incompatibility issues.
Please check the book edition before proceeding.
Looks like the it's missing the precompiled assets. If you ran the command locally, you need to git add . and git commit the assets into the repo and then git push heroku again.
Also, Heroku's default build pack will try to precompile the assets during deploy, so you could try to figure out why that is failing.
You don't need to add a Procfile. Heroku will use reasonable defaults.

Resources