0

First, I was getting a "precompile" error and I have solved it running this code RAILS_ENV=production bundle exec rake assets:precompile

Second I needed to add a code for the database run in production mode that was:

production:
  adapter: postgresql
  encoding: unicode
  host: localhost
  port: 5432
  database: catarse_production
  pool: 5
  username: postgres
  password: password

And everything apparently went smooth after do "git push heroku master" as you can see:

git push heroku master

Counting objects: 88230, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (25243/25243), done.
Writing objects: 100% (88230/88230), 52.07 MiB | 111.00 KiB/s, done.
Total 88230 (delta 61270), reused 88177 (delta 61251)
remote: Git submodules detected, installing:
remote: 
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.1.2
remote: -----> Installing dependencies using 1.9.7
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Fetching gem metadata from rubygems.org/..........
remote:        Fetching version metadata from rubygems.org/...
remote:        Fetching dependency metadata from rubygems.org/..
remote:        Fetching git://github.com/bernat/best_in_place
remote:        Fetching git://github.com/catarse/catarse_api.git
remote:        Fetching git://github.com/catarse/moip-ruby.git
remote:        Fetching git://github.com/catarse/redactor-rails.git
remote:        Installing CFPropertyList 2.3.1
remote:        Installing i18n 0.7.0
remote:        Installing rake 10.4.2
remote:        Installing minitest 5.7.0
remote:        Installing thread_safe 0.3.5
remote:        Installing erubis 2.7.0
remote:        Installing rack 1.5.3
remote:        Installing mime-types 2.6.1
remote:        Installing builder 3.2.2
remote:        Installing arel 5.0.1.20140414130214
remote:        Installing json 1.8.2
remote:        Installing addressable 2.3.8
remote:        Installing extlib 0.9.16
remote:        Installing multi_json 1.11.0
remote:        Installing redcarpet 3.2.3
remote:        Installing browser 0.8.0
remote:        Using bundler 1.9.7
remote:        Installing thor 0.19.1
remote:        Installing hike 1.2.3
remote:        Installing rinku 1.5.1
remote:        Installing crack 0.1.8
remote:        Installing tilt 1.4.1
remote:        Installing excon 0.45.3
remote:        Installing bcrypt 3.1.10
remote:        Installing netrc 0.10.3
remote:        Installing libxml-ruby 2.8.0
remote:        Installing chartkick 1.3.2
remote:        Installing chunky_png 1.3.4
remote:        Installing cocoon 1.2.6
remote:        Installing coffee-script-source 1.9.1.1
remote:        Installing execjs 2.5.2
remote:        Installing unf_ext 0.0.7.1
remote:        Installing rb-fsevent 0.9.5
remote:        Installing sass 3.4.14
remote:        Installing connection_pool 2.2.0
remote:        Installing hitimes 1.2.2
remote:        Installing multipart-post 2.0.0
remote:        Installing jwt 1.5.0
remote:        Installing little-plugger 1.1.3
remote:        Installing memoist 0.12.0
remote:        Installing retriable 1.4.1
remote:        Installing mini_portile 0.6.2
remote:        Installing oauth 0.4.7
remote:        Installing multi_xml 0.5.5
remote:        Installing temple 0.7.5
remote:        Installing orm_adapter 0.5.0
remote:        Installing request_store 1.1.0
remote:        Installing ezcrypto 0.7.2
remote:        Installing sax-machine 1.3.2
remote:        Installing formatador 0.2.5
remote:        Installing net-ssh 2.9.2
remote:        Installing ipaddress 0.8.0
remote:        Installing inflecto 0.0.2
remote:        Installing hashie 3.4.1
remote:        Installing high_voltage 2.3.0
remote:        Installing htmlentities 4.3.3
remote:        Installing http_accept_language 2.0.5
remote:        Installing httpclient 2.6.0.1
remote:        Installing curb 0.8.8
remote:        Installing mini_magick 4.2.7
remote:        Installing mixpanel-ruby 2.1.0
remote:        Installing newrelic_rpm 3.12.0.288
remote:        Installing ffi 1.9.8
remote:        Installing rails_serve_static_assets 0.0.4
remote:        Installing rails_stdout_logging 0.0.3
remote:        Installing kgio 2.9.3
remote:        Installing redis 3.2.1
remote:        Installing ruby-ole 1.2.11.8
remote:        Installing valuable 0.9.9
remote:        Installing state_machine 1.2.0
remote:        Installing weekdays 1.0.2
remote:        Installing fission 0.5.0
remote:        Installing tzinfo 1.2.2
remote:        Installing rack-test 0.6.3
remote:        Installing warden 1.2.3
remote:        Installing heroku-deflater 0.5.3
remote:        Installing mail 2.6.3
remote:        Installing launchy 2.4.3
remote:        Installing autoparse 0.3.3
remote:        Installing auto_html 1.6.4
remote:        Installing httparty 0.6.1
remote:        Installing sprockets 2.12.3
remote:        Installing mailchimp-api 2.0.6
remote:        Installing coffee-script 2.4.1
remote:        Installing uglifier 2.7.1
remote:        Installing unf 0.1.4
remote:        Installing compass-core 1.0.3
remote:        Installing compass-import-once 1.0.5
remote:        Installing timers 4.0.1
remote:        Installing faraday 0.9.1
remote:        Installing logging 2.0.0
remote:        Installing pg 0.17.1
remote:        Installing slim 3.0.3
remote:        Installing net-scp 1.2.1
remote:        Installing omniauth 1.2.2
remote:        Installing video_info 2.4.2
remote:        Installing raindrops 0.13.0
remote:        Installing rb-inotify 0.9.5
remote:        Installing rails_12factor 0.0.3
remote:        Installing ethon 0.7.3
remote:        Installing redis-namespace 1.5.2
remote:        Installing activesupport 4.1.10
remote:        Installing domain_name 0.5.24
remote:        Installing spreadsheet 1.0.3
remote:        Installing celluloid 0.16.0
remote:        Installing oauth2 1.0.0
remote:        Installing signet 0.6.0
remote:        Installing omniauth-oauth 1.1.0
remote:        Installing fog-core 1.30.0
remote:        Installing compass 1.0.3
remote:        Installing typhoeus 0.7.1
remote:        Installing actionview 4.1.10
remote:        Installing activemodel 4.1.10
remote:        Installing enumerate_it 1.2.8
remote:        Installing i18n_alchemy 0.2.1
remote:        Installing pundit 1.0.1
remote:        Installing http-cookie 1.0.2
remote:        Installing to_xls 1.5.3
remote:        Installing sidekiq 3.1.4
remote:        Installing omniauth-oauth2 1.3.0
remote:        Installing googleauth 0.4.1
remote:        Installing omniauth-twitter 1.2.0
remote:        Installing fog-json 1.0.1
remote:        Installing fog-local 0.2.1
remote:        Installing fog-vmfusion 0.1.0
remote:        Installing compass-960-plugin 0.10.4
remote:        Installing mixpanel_client 4.1.2
remote:        Installing actionpack 4.1.10
remote:        Installing active_model_serializers 0.8.0
remote:        Installing activerecord 4.1.10
remote:        Installing carrierwave 0.10.0
remote:        Installing rails-observers 0.1.2
remote:        Installing protected_attributes 1.0.9
remote:        Installing spectator-validates_email 0.2.0
remote:        Installing rest-client 1.8.0
remote:        Installing omniauth-facebook 2.0.1
remote:        Installing google-api-client 0.8.6
remote:        Installing fog-brightbox 0.7.1
remote:        Installing fog-sakuracloud 1.0.1
remote:        Installing fog-serverlove 0.1.2
remote:        Installing fog-softlayer 0.4.6
remote:        Installing fog-storm_on_demand 0.1.1
remote:        Installing actionmailer 4.1.10
remote:        Installing nokogiri 1.6.6.2
remote:        Installing has_scope 0.6.0
remote:        Installing kaminari 0.16.3
remote:        Installing railties 4.1.10
remote:        Installing sprockets-rails 2.3.1
remote:        Installing draper 2.1.0
remote:        Installing routing-filter 0.4.0.1
remote:        Installing simple_form 3.1.0
remote:        Installing pg_search 1.0.3
remote:        Installing ranked-model 0.4.0
remote:        Installing schema_plus 1.8.9
remote:        Installing pagarme 1.9.9
remote:        Installing mail_form 1.5.1
remote:        Using best_in_place 3.0.0.alpha from git://github.com/bernat/best_in_place (at ee95961)
remote:        Installing unicorn 4.9.0
remote:        Installing google_drive 1.0.1
remote:        Using moip 1.0.2 from git://github.com/catarse/moip-ruby.git (at c0225ad)
remote:        Installing fog-xml 0.1.2
remote:        Installing loofah 2.0.2
remote:        Installing coffee-rails 4.1.0
remote:        Installing responders 1.1.2
remote:        Installing slim-rails 3.0.1
remote:        Installing jquery-rails 3.1.2
remote:        Installing sass-rails 5.0.1
remote:        Installing fog-atmos 0.1.0
remote:        Installing rails 4.1.10
remote:        Installing fog-ecloud 0.1.1
remote:        Installing fog-powerdns 0.1.1
remote:        Installing fog-google 0.0.5
remote:        Installing fog-aws 0.4.0
remote:        Installing fog-profitbricks 0.0.2
remote:        Installing fog-radosgw 0.0.4
remote:        Installing fog-riakcs 0.1.0
remote:        Installing fog-terremark 0.1.0
remote:        Installing fog-voxel 0.1.0
remote:        Installing inherited_resources 1.6.0
remote:        Installing feedjira 1.6.0
remote:        Using catarse_api 0.0.1 from git://github.com/catarse/catarse_api.git (at master)
remote:        Installing devise 3.5.1
remote:        Installing compass-rails 2.0.4
remote:        Installing catarse_monkeymail 0.1.6
remote:        Installing catarse_moip 3.2.0
remote:        Installing catarse_settings_db 0.1.1
remote:        Installing postgres-copy 0.9.2
remote:        Installing dbhero 1.1.6
remote:        Installing user_notifier 0.0.5
remote:        Using redactor-rails 0.5.0 from git://github.com/catarse/redactor-rails.git (at master)
remote:        Installing catarse_pagarme 2.6.8
remote:        Installing fog 1.30.0
remote:        Bundle complete! 85 Gemfile dependencies, 192 gems now installed
remote:        Gems in the groups development and test were not installed.
remote:        Bundled gems are installed into ./vendor/bundle.
remote:        Post-install message from httparty:
remote:        When you HTTParty, you must party hard!
remote:        Post-install message from compass:
remote:        Compass is charityware. If you love it, please donate on our behalf at umdf.org/compass Thanks!
remote:        Bundle completed (365.51s)
remote:        Cleaning up the bundler cache.
remote:        Detected manifest file, assuming assets were compiled locally
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types -> web, worker
remote:        Default types for Ruby  -> console, rake
remote: 
remote: -----> Compressing... done, 58.7MB
remote: -----> Launching... done, v5
remote:        shrouded-stream-3654.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy..... done.
To git.heroku.com/shrouded-stream-3654.git
 * [new branch]      master -> master

However, now the app at Heroku is just a blank page and I do not know what I can do to solve it. You can check the app in this link: https://shrouded-stream-3654.herokuapp.com/

Thank you for your help!

4
  • 2
    Try running heroku logs to see what it outputs when you visit the page. Maybe it can give some clues. Commented May 31, 2015 at 6:57
  • You have a Failed to load resource: the server responded with a status of 500 (Internal Server Error). Does it occur when launching local with command : foreman start web? Commented May 31, 2015 at 7:00
  • @Zoran using heroku logs I got it: textsnip.com/alb3fh/html Commented May 31, 2015 at 19:39
  • @MacKentoch using foreman start web I got it: textsnip.com/arjup0/html Commented May 31, 2015 at 19:41

1 Answer 1

1

Your error logs yield:

Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml` (RuntimeError)

You can resolve this issue by adding config/secrets.yml to version control, and then deploying again (explained in detail here: How to solve error "Missing `secret_key_base` for 'production' environment" (Rails 4.1))

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.