Yanit demo fails to run on Heroku but runs fine locally

55 views
Skip to first unread message

Ray Wong

unread,
Nov 29, 2013, 10:30:27 AM11/29/13
to net...@googlegroups.com
Hello,

So I thought I'd try diving into a Netzke application head first by modifying the Yanit code.  The first thing I did was to clone the repo found on github. https://github.com/nomadcoder/yanit.git
I did the following steps to get it working locally on my dev machine.

1. renamed the database.sample.yml file to database.yml and I created an entry to support my local Postgres database.

2. performed a rake db:migrate

3. ran the app

It works beautifully on my local machine.  However, my end goal is to have this app running on Heroku.  So I added some more changes that are required. 

a. Added ruby "1.9.3" to the Gemfile
b. Added config.assets.initialize_on_precompile = false to the application.rb file

I then pushed the app to my Heroku account, migrated the database on heroku, 
 heroku run rake db:migrate

Then I tried to run it and I get this error:

2013-11-29T14:45:15.634592+00:00 app[web.1]: Started GET "/" for 135.23.149.119 at 2013-11-29 14:45:15 +0000
2013-11-29T14:45:15.641021+00:00 app[web.1]: Processing by ComponentsController#home as HTML
2013-11-29T14:45:16.207708+00:00 app[web.1]:   Rendered inline template within layouts/application (564.7ms)
2013-11-29T14:45:16.207811+00:00 app[web.1]: Completed 500 Internal Server Error in 566.7ms
2013-11-29T14:45:16.209621+00:00 app[web.1]:
2013-11-29T14:45:16.209621+00:00 app[web.1]:     1: <%= netzke :application %>
2013-11-29T14:45:16.209621+00:00 app[web.1]:   app/controllers/components_controller.rb:15:in `home'
2013-11-29T14:45:16.209621+00:00 app[web.1]:
2013-11-29T14:45:16.209621+00:00 app[web.1]: ActionView::Template::Error (undefined method `js_compressor' for nil:NilClass):

I believe this is happening because the on the fly asset compiler is still running, or is trying to run on Heroku, but I can't be sure, has anyone else tried to do this?  Clearly yanit runs on heroku as there is already a demo of it running at yanit.heroku.com but I certainly can't seem to get it to work.  Please help..

Thanks 

bruce

unread,
Jan 19, 2014, 8:26:58 PM1/19/14
to net...@googlegroups.com
Hi,
Did you actually solve this.
I am now, for some strange reason, experiencing the same problem.

Thanks
Reply all
Reply to author
Forward
0 new messages