heroku

An affordable way to use multiple Delayed::Job queues

I have a Ruby on Rails app that needs process many background jobs simultaneously: anywhere from 5-6 at a time to up to 50-60 at a time depending on the time of day. Right now my app is running on Heroku, which charges $.05/hour per worker, regardless of how much CPU or memory the worker is using. This is costing me a boatload each month...

Establishing connection w/ Amazon s3 from Heroku

I am attempting to deploy my first app on Heroku and having a little trouble getting the S3 connection to work. Here is the error I am getting from the Heroku logs: AWS::S3::CurrentBucketNotSpecified (No bucket name can be inferred from your current connection's address (`s3.amazonaws.com')): I have the following configured: config...

How do I configure Rails to disable sending real emails out while in staging?

I'm on Heroku, and emails don't get sent out in development, but are properly being sent in production. I'd like to run a seperate staging instance on Heroku, but don't want emails being sent out (just to a log). ...

Heroku app throws "Internal Server Error"

This app works just fine on my local computer. After pushing it to Heroku, static pages appear to be working but the blog section throws an Internal Server Error. I pulled the logs by running "heroku logs" and this is what I get: ==> production.log <== /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:i...

Heroku throws SQLITE3 Read only exception

After I deploy an app to Heroku, I run migration scripts and get this error message ...ites\padrino\prophetmargin> heroku rake ar:migrate rake aborted! SQLite3::ReadOnlyException: attempt to write a readonly database: CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) /disk1/home/slugs/215264_925fd2c_65a3/mnt/.bundle/gem...

Setting up custom domain on Heroku with CNAME redirect for www subdomain

I'm using Heroku, and have added a couple custom domains for my app, i.e. myapp.com and www.myapp.com My DNS at GoDaddy has three A records for '@' pointing to three separate Heroku IPs, and a CNAME for the 'www' subdomain that points to proxy.heroku.com What I want to do is redirect any traffic to www.myapp.com to myapp.com. I tried s...

How do i change column type in Heroku?

I am trying to rake the db:migrations into my heorku instance and I get an error. The FAQ described my error as below: Cannot change column type Example: PGError: ERROR: column “verified_at” cannot be cast to type “date” Cause: PostgreSQL doesn’t know how to cast all the rows in that table to the specified type. Mo...

restful_authentication deployment to Heroku - Name Error

When I deploy my rails app (which uses restful_authentication), to Heroku, I get the following errors: /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant User::Authentication (NameError) from /disk1/home/slugs/216145_64fa92e_1859/mnt/app/models/user.rb...

Deploy a subdirectory to Heroku

I have one 'super' repository in GitHub which will contain several applications I would like to deploy to Heroku. Here is an example of my repository. /app /.git /website <-- would like to deploy this to Heroku When I try to push using the following command: $ git push heroku master I get the following error: Heroku push rejec...

Rails - Failing Routes in deployment

I have an app that has the following in the routes file: namespace "admin" do # ADMINISTRATIVE ROUTES ONLY root :to => 'home#index' resources :comments do member do get :approve get :reject end end resources :users do member do get :block get :unblock ...

ssh key fingerprint error when trying to switch heroku accounts

hey out there! i often need to switch heroku accounts and use a script which does the following: heroku keys:clear && rm ~/.heroku/credentials && heroku list after which i need to enter my credentials for the account i want to switch to: Enter your Heroku credentials. Email: [email protected] Password: Uploading ssh public key /Users/f...

Heroku and Rails 3 - Routing that works locally breaks in cloud

Using Rails 3 Beta 4: I'm getting this error, but can't quite follow why, as it's working locally. It's a pretty small application at the moment, and I can see that one controller is working, but the SessionsController is not. Does this uninitialized constant error look familiar to anyone? Started GET "/sessions/create?code=2.pzgz...

Heroku Dyno/Worker Scaling

Heroku allows you to add and remove dynos and workers on the fly and charges you per second that each is used. Is it possible to set up my app so that it can add/remove dynos and workers from itself depending on the load it's under via some sort of heroku api? ...

How do you package extensions for Heroku?

I have a gem that uses a binary (htmldoc) that is not bundled into the gem as a native extension (so you can't run rake gems:build to have htmldoc installed). The host machine has to have the htmldoc binary compiled and installed on it in order for the gem to work. How do you get binaries to compile and install when your heroku instance ...

heroku Postgres error - operator does not exist timestamp without timezone = integer

I am using the following code in my controller: @monday = (Time.now).at_beginning_of_week @friday = 5.days.since(@monday)-1.second @sent_emails = ContactEmail.all(:conditions => ['date_sent >= ? and date_sent <= ?', @monday, @friday]) Although it works fine on my local sqlite, I have an "operator does not exist timestamp witho...

Error Pushing To Heroku, Rails3 beta4

hi, i'm getting an error when pushing to heroku using rails 3 beta 4. i've managed to deploy before using it but for some reason i'm getting a strange error now. I'm on os x, snow leopard. I've been using rvm with both 1.9.2 preview and head, i also just reverted back to the system ruby 1.8.7 -p254 but they all give me the same err...

Push Rack-Jekyll app to Heroku

Hello, I haven't used Ruby. I don't what gems are. But I know how to install them and do basic things like that. I heard of Jekyll and decided to start my own using Heroku. I found Rack-Jekyll that will work on Heroku. I created my site as per Jekyll instructions and it is running fine on my system. Then I did what I was told to do in ...

installing i18n_routing on heroku (i18n requires RubyGems version >= 1.3.6)

Hi, I try to deploy my first app on heroku. I've created a gem manifest file which include: i18n_routing --version '0.3.3' When I push to heroku, all the gems are installed but i18n: -----> Installing gem i18n_routing 0.3.3 from http://rubygems.org ERROR: Error installing i18n_routing: i18n requires RubyGems version >...

can I use .to_s(:long) in Postgres with a column type date on Heroku in rails?

I have a column type date (shown from annotate) on my Contacts table: # date_entered :date(255) This is the line of code that has worked for me locally on my sqlite3 database, but now generates an error in Heroku: <%= contact.date_entered.to_s(:long) %> The error that I get is: wrong number of arguments (1 for 0) I remove...

Proper continuous integration and continuous deployment with Git and Heroku

I am developing a ruby on rails website using heroku and git. What tools and features should I use to set up the following simple development process? CODE > CHECK-IN > AUTO TEST > AUTO DEPLOY I check my code into my repository (preferred option, hosted git like github) Tests are automatically run AND website is deployed in my stagin...