Sunday, 18 August 2013

Pushing to heroku got an asset precompile error database error

Pushing to heroku got an asset precompile error database error

I git cloned down a repo (a simple job board site made in rails). I
altered the gemfile (removed sqlite 3 and added in pg, altered the
database.yml file to use pg).
I added in config.assets.initialize_on_precompile = true to application.rb
to fix the precompile assets issue
then when I push to heroku, I am getting this error.
Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
No such file or directory - /tmp/build_1anu322cyrrs8/config/email.yml
Since I git cloned this down, I did not write this so I am still learning
the code. What is this tmp file that I am supposed to need? where should I
look?
Here is a bit more of the log that I feel like its needed
Tasks: TOP => environment
(See full trace by running task with --trace)
Precompiling assets failed, enabling runtime asset compilation
Injecting rails31_enable_runtime_asset_compilation
Please see this article for troubleshooting help:
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
-----> Rails plugin injection
Injecting rails_log_stdout
Injecting rails3_serve_static_assets
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby/Rails -> console, rake, web, worker
-----> Compiled slug size: 28.1MB
-----> Launching... done, v6
http://secret-forest-8321.herokuapp.com deployed to Heroku

No comments:

Post a Comment