ruby on rails - Why am I getting an Application Error error page for my brand new app hosted by Heroku? -


I am quite new to ROR and thus

I create my own web-based app I have been following a video tutorial, and I found this step: git pushed my master master

When in git bash, this is an error which claims that it does not compile the ruby Could Now, it says that it has been launched and deployed, but this is still the error on the page for my app,

Any ideas ?? I can add files if necessary.

The requested file (files):

App / Config / APR My comment requires a

  file extension_path ('.. / boot', __FILE__) 'rails / all' # config / application.rb config.assets.initialize_on_precompile = false # Gems listed in the journal are required, including any gem # You are limited: testing,: development, or: production Bundler.require (* Rails.groups) module Myrubyblog class application & lt; Rails :: App # settings preceded by those specified in config / environment / *. # The application configuration should go to the files in the config / initializers # - All the .rb files in that directory are loaded automatically. # Fixed time in the specified area. Auto-convert active zone records and active in this field. # Run "rake-d time" for a list of tasks to find the time zone names. The default UTC is # Config.time_zone = 'Central Time (US and Canada)' # Default Location: N and Config / Locale / *. All translations from RB, Wii are auto loaded. I # Config.i18n.load_path + = Dir [Rails.root.join ('my', 'locales', * * .rb, yml}') To_s] # config.i18n.default_locale = End of End  

The row 6 mentioned in my error is config.assets.initialize which I have to fix my problem Put it in the suggested line with 5.

This is what happens if I run Migrate (HARROWUKE RUN DRB: Migrate)

  is running 'Rake DB: connected to the Migrate' terminal Happened ... up, run 67474 rack was aborted! Name error: 'config' method for undefined local variable or main: object / app / config / applications. Rb: 6: IN '& lt; Top & lt; Required & gt; & Gt; ' / App / rackfile: 4: in 'expected' / app / rackfile: 4: in '& lt; Top & lt; Required & gt; ' & Lt; --trace & gt; Work with the full trace; As a rule, there are two types of errors that you can get when hosting the rail. App on Heroku:  

Horoku error

</

Railway error

 Enter image details here

-

Error

The difference between the two is important - Rail errors occur only if your operating environment is actually "running" every errors will cause your rail applications if Your operating environment / Heroco will not load correctly

Your problem is definitely an Herocua problem - which is usually created db Due to the lack of connectivity, the way to fix this problem is to ensure that all the requirements in your application are to run - most especially the correct db

Good use:

  $ heroku run rake dB: migrate  

h However, I appreciate it that you will not only have this issue


Harcoco deployment

As you have said that you have to do ROR "Beginning", I give you some suggestions

First of all, when you write the question here, it helps in revealing as much information as possible - usually by log, Or any other specific error handling system

Secondly, you want to make sure We may need to run your application went perfectly. Most notably, when you mention Harcoco , you can not compile the Ruby app, then you have to provide the information on why - it might be a gem Conflicts (SQLite3) or similar

Third, you have to make sure that you have migrated your database. This is one of the biggest reasons that "Heroku errors" appear - the meaning of deploying your rail app It's not that you're locally A migrations will continue - you need to make sure that you have a db update, which can be done as follows:

  $ heroku run rake DB: Migrate  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -