Tag: heroku

Rails ArgumentError (missing required :bucket option) fixes not working?

My Rails app is hosted on Heroku but I need to get Paperclip working locally so I can upload photos in testing. I’m really close, but I’m stuck on the “missing required :bucket option” error. I’ve tried moving around settings in my environment files as well as well as adding a config/application.yml file with my […]

Postgres: Error using GROUP BY and ORDER (on heroku)

I am trying to solve my heroku problem which it seems to have problem of We’re sorry, but something went wrong. We’ve been notified about this issue and we’ll take a look at it shortly. Is there any mistake I have and how to overcome it? How can I interpret these Heroku logs? ActionView::Template::Error (PGError: […]

Broken spree_fancy layout on heroku

I’m a rails newbie. I’ve install spree and spree fancy on my app. It’s ok on development but when I’ve deployed it on heroku, the layout is broken. Can anyone help me fix this? Question w/ Images: https://github.com/spree/spree_fancy/issues/68 Gemfile: ruby ‘1.9.3’ gem ‘rails_12factor’, group: :production gem ‘rails’, ‘4.0.0’ group :production do gem ‘pg’ end group […]

Why Do Heroku Stack Traces indicate Ruby 1.9.1 is in use?

Recently saw this stack trace on our Heroku app on cedar /usr/local/lib/ruby/1.9.1/uri/common.rb:156:in `split’ /usr/local/lib/ruby/1.9.1/uri/common.rb:174:in `parse’ /usr/local/lib/ruby/1.9.1/uri/common.rb:628:in `parse’ Why is it using Ruby 1.9.1? My Gemfile is not specifying a Ruby version. Heroku’s docs suggest that we should be getting the Cedar default of 1.9.2 https://devcenter.heroku.com/articles/ruby-versions EDIT: ruby -v appears to report the correct version $ […]

dyld: lazy symbol binding failed: Symbol not found: _ruby_run when using heroku

I’ve run into this problem after I installed the newest version of the heroku toolbelt. If I use the heroku command, I get this error: $ heroku -v dyld: lazy symbol binding failed: Symbol not found: _ruby_run Referenced from: /usr/local/bin/ruby Expected in: /usr/lib/libruby.dylib dyld: Symbol not found: _ruby_run Referenced from: /usr/local/bin/ruby Expected in: /usr/lib/libruby.dylib Trace/BPT […]

Heroku console not loading file in /lib?

I’m not being able to require a file under /lib on Heroku console. Any idea why? This is in my local machine ruby-1.9.2-p290 :001 > require “folder/file.rb” => true This is on Heroku console (Cedar) irb(main):057:0> require “folder/file.rb” => false

Rails creating records with timestamps set to nil, 'heroku restart' solves it

I have a Rails 4 application that is showing some odd behavior on the live production site. Often when creating a Post, the default Rails timestamps (created_at and updated_at) are being set to nil, and the only way to solve it is to restart the Heroku dynos. After I restart Heroku, I can create Posts […]

Rails help creating a delayed_job from a rake file

How do I create a delayed job from a rake file. How should I move it into a controller and create a delayed_job that runs the task every 15 minutes. Here is an example how my rake file: namespace :reklamer do task :runall => [:iqmedier, :euroads, :mikkelsen] do # This will run after all those […]

heroku db:push sqlite://mydatabase.db error

**When I do “heroku db:push sqlite://mydatabase.db” I have a problem with Ruby + Sinatra + Sqlite3 + Heroku : When i do : “heroku db:push sqlite://anotador.db” Console log: 2013-01-21T12:37:11+00:00 app[web.1]: Errno::ENOENT – No such file or directory – /app/views/home.erb: 2013-01-21T12:37:11+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.3/lib/sinatra/base.rb:572:in `erb’ My anotador.rb : require ‘rubygems’ require ‘sinatra’ require ‘data_mapper’ DataMapper::setup(:default, ENV[‘DATABASE_URL’] || […]

heroku run rake db:migrate – /bin/sh: 1: rake: not found

When I am trying to run heroku run rake db:migrate from Heroku code=H10 desc="App crashed" – Can't figure out why it's crashing I get /bin/sh: 1: rake: not found – git push heroku master # if not done – heroku run rake db:migrate – heroku restart Any suggestions? Logs of the command: 2017-07-08T23:10:22.242114+00:00 app[api]: Starting […]

Ruby is the best programming language in the world - Ruby on Rails.