Rails oink with Heroku -
this question has been asked before no answer seems work me. break problem down 3 components:
1) receive heroku r14 memory (memory quota exceeded) (i.e. site has been 2 days on heroku , got error twice period of 10-15 mn [i emotional count time precisely]).
2) installed oink gem advised heroku.
3) oink logs, messages effect in heroku logs , in webrick when work locally. however, unable access logging summary shows functions exceed memory threshold.
the line returns result (but wrong one) :
oink --threshold=0 logfile_for_oink
but returns empty lines follows:
---- memory threshold ---- threshold: 0 mb -- summary -- worst requests: worst actions: aggregated totals:
every other attempt - copying advice on stackoverflow - returns errors.
i list different attempts have made (so no-one posts suggestion may have tried) after this.
heroku run bundle exec oink --threshold=75 log/*
this line returns following error:
/app/vendor/bundle/ruby/1.9.1/gems/oink-0.10.1/lib/oink/cli.rb:88:in `block in get_file_listing': not find "log/development.log" (runtimeerror)
every variation on this, such log/production.rb or /log/* or have has failed.
i tried advice on following links no avail:
oink logs command not working on heroku
oink logs command not working on heroku
can me?
heroku prepends log file additional timestamp oink can't read it. can use regex though fix it.
http://arches.io/2013/07/understand-memory-usage-on-heroku-rails-app-using-oink/
Comments
Post a Comment