heroku

Can you deploy Watir on Heroku to generate HTML Snapshots? If so, how?

I would like to generate HTML Snapshots using Watir, hosted on Heroku. Google's Full Specification for Making AJAX Applications Crawlable suggests using HTMLUnit... see How do I create an HTML snapshot? point #3. HtmlUnit is a Java-only headless browser emulator; and unfortunately jRuby is not an option on Heroku. So HtmlUn...

How to have users create scheduled tasks in rails app deployed on Heroku

I have a rails app deployed on Heroku. I want to add a feature that enables users of the app to set a reminder. I need some way for the app to schedule sending an email at the time specified by the user. I have found numerous posts referring to using delayed_job for this, but none of the write-ups / tutorials / etc. that I have found ...

How do I use rails 2.3.8 with declarative authorization on heroku?

help rails 3 came out yesterday, we have a fully functional rails 2.3.8 app, but our deployment on heroku doesn't work because declarative_authorization demands rails 2.1 or higher That is a very big problem, how can I solve it, any quick hacks, workarounds? ...

RoR app works fine locally, but errors when using a from /lib when run on Heroku

My RoR app works fine when run locally, but when I run it on Heroku, it errors on this line: my_reader = Docreader.new(params[:doc]) Error: NameError (uninitialized constant NotesController::Docreader): Docreader.rb is located in the lib folder I've tried heroku restart, but it didn't help. What am I doing wrong? Thanks for readin...

How can I choose Ruby version on Heroku?

I use Ruby 1.9.x syntax in my Rails 3 app, but after pushing it to Heroku it crashes due to older Ruby version (1.8). How can I control it? ...

How can I retrieve updated records in real-time? (push notifications?)

Hello, I'm trying to create a ruby on rails ecommerce application, where potential customers will be able to place an order and the store owner will be able to receive the order in real-time. The finalized order will be recorded into the database (at the moment SQLite), and the storeowner will have a browser window open, where the new or...

Mananging upload of images to create custom pdfs on heroku - right tools

Hi Im desiging an app which allows users to upload images (max 500k per image, roughly 20 images) from their hard drive to the site so as to be able to make some custom boardgames (e.g. snakes and ladders) in pdf formate. These will be created with prawn instantly and then made available for instant download. Neither the images uploa...

Rails reinstalls every time I push to heroku

When I write git push heroku master my app is successfully pushed to heroku, but it takes about 30sec to a minute because it says it is "Installing gem rails 2.83" and that "Rails is not declared in either .gems or Gemfile." How do I fix this? What exactly is the .gems file and where does it live? Thanks a lot. I am completely new to ...

Heroku gem not working with RVM

I'm following the Ruby on Rails tutorial at http://railstutorial.org/chapters/beginning#sec:1.4.1, and all is going well until I tried to get my app going on Heroku. I installed heroku, that worked fine, but now when I run heroku keys:add or any other heroku command, I get the following error: /home/sirswap/.rvm/gems/ruby-1.9.2-p0@rail...

How do I use Applescript to log me in to heroku console and count my users?

My script looks like this, really simple tell application "Terminal" do script "cd myapp" do script "heroku console" in window 1 do script "User.count" in window 1 end tell But I get an "Error in the AppleEvent Routine". What is wrong with this script? If I type the commands in the Terminal it works. ...

Where can I host a Node.js app?

Hello, I am trying to experiment with Node.js. Since it needs the V8 engine, can I run a Node.js app on any of the free cloud hosting providers: AppEngine or Heroku? If not, then what is the standard way to deploy it on the web? If yes, then how? any pointers? If on local machine, then any starters for that? Thanks ...

Heroku & Delayed Job - Autoscale Branch - RestClient::ResourceNotFound

SomeController#update (RestClient::ResourceNotFound) "Resource Not Found" I'm receiving this error (where previously I was not) while trying to enqueue delayed jobs using the autoscale branch of DelayedJob. This does not occur with a none autoscale branch but I'm at a loss to pinpoint what the problem is. If anyone is experiencing the...

Rails Heroku Gem Deployment Problem

config.gem: Unpacked gem authlogic-2.1.5 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. config.gem: Unpacked gem authlogic-2.1.6 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. /disk1/home/slugs/283271_2d484fd_a21d/mnt/config/../vendor/rails/railties/lib/initiali...

Cannot enqueue items which do not respond to perform -- delayed_job on heroku

Hi, I am trying to use delayed_job on heroku and I get the following error: Cannot enqueue items which do not respond to perform I am using the plugin http://github.com/pedro/delayed_job I am using the following cron rake task (cron.rake): task :cron => :environment do require 'heroku' puts "starting the cron job at #{Date....

Rack and Scrapi problems on Heroku

I am trying to deploy an app on Heroku, however the app crashes and I get this when I run heroku logs (full trace below; Gemfile content below). You have already activated rack 1.2.1, but your Gemfile requires rack 1.0.1 I am using bundler (1.0.0.rc.6) for the gem management. I also have a Scrapi problem, it requires a Mac lib even th...

LoadError when using heroku db:push

When i use "heroku db:push" to transfer my local data to heroku,i got this error message: Sequel::AdapterNotFound -> LoadError: no such file to load -- sequel/adapters/mysql2 I already install the mysql2 gem, and i am using rvm with ruby 1.9.2 in Mac OS X Snow Leopard. ...

How can I use a SOAP API in my Rails app in Heroku and EngineYard?

Hi, I've got a pure, working, Rails application hosted on Heroku and another on EngineYard. I now need it to start communicating with another application. This application exposes that exposes a SOAP interface. How can I connect to the API in my rails app? Thank you ...

push Rails3 on Heroku. can not find mysql gem

hi, i'm getting an error when pushing to heroku using rails 3. I'm on windows with ruby 1.8.7 Administrator@WIN-DQC3IH63U7C ~/nasha (master) $ heroku rake db:migrate rake aborted! no such file to load -- mysql /disk1/home/slugs/280561_9c64ba2_1741/mnt/Rakefile:4 (See full trace by running task with --trace) (in /disk1/home/slugs/280561_...

access heroku DB via odbc on mac osx?

we need to build a heroku app which stores data in a DB table. we have proprietary software that needs to connect via ODBC to the DB. what driver do we need? ...

How to force heroku to use JSON/ext over JSON/pure.

I've hit a stumbling block and I'm not sure how to proceed. I'm trying to get resque working with redis to go on heroku, I have it all working locally, but when I push to my staging environment and try to queue a job I get the following exception: TypeError: wrong argument type JSON::Pure::Generator::State (expected Data) On my local m...