heroku

Error installing taps

Here is my Gem Environment: RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM...

Ruby on Rails: How to set a database timeout in application configuration?

I'd like to set my database to timeout requests that do not complete within a set amount of time, in order to prevent outlier requests from monopolizing the entire application. Is there anything I can add to my Rails configuration files in order to set this? I tried to add a line I saw often online of timeout: 5000 to my database.yml, ...

Can I point a Heroku project to a Path in my Domain?

If I have a project on heroku: http://martini.heroku.com Can/how-do I point that to a path on my domain: http://viatropos.com/martini Is that possible? ...

deploying rails app to heroku migrations rake error on windows

Hi, I am attempting to deploy my app to heroku via a windows 7 machine. I've made it as far as git push heroku master without running into any major issues but when I try to rake the migrations i get the following error $ heroku rake db:migrate --trace rake aborted! No such file or directory - /disk1/tmp/13403_23723015091620/.bundle...

how much data can a 5MB SQL database store?

Hi, I'm interested in using Heroku for my project. I'm not interested in paying for it at the moment but the free plan only offers a 5MB database. Is there any measure I can use to know how many columns/rows of simple text data can be stored in a 5MB database? Thanks ...

Find similar strings in postgresql hosted on Heroku

Given an article's title, I would like to find all the similar articles in my blog based on the title only. How would you proceed? (I use postgresql and heroku) ...

Heroku S3 bucket

Hi I'm moving an application onto Heroku and subsequently realised I'll need to set up an S3 bucket in the states where currently it's in the EU. This is to avoid having to pay for transfers. What isn't clear to me is which US S3 bucket I should choose. I'm presented with Northern California and US Standard Regions but cannot find any...

Do I have use of Chef if I'm using Heroku?

I use Heroku to deploy my Rails apps. But I thought about learning Chef to automatically set up the development infrastructure, but Im not sure. So to put it very simple, are there any reasons for me to learn Chef? ...

Git Pushing a branch to heroku

I am very new to git but I need to use it for one of my projects. A few days ago I created a local branch for the project and started working on (the new branch) it locally. Now I want to be able to push this new branch of the project to heroku. I saw that the way to do it is to git push heroku branchname I tried doing that but I on...

Heroku upload changes

Hi! I make some changes in local files, how can I deploy the new version? if I type git push heroku master, it's say everything up to date, but the application wasn't changed. ...

Heroku takes care of multiple database servers?

When my user base grows, does Heroku take care of setting up multiple database servers for my Rails app or do I have to configure it manually somehow? In other words, does Heroku scale well and correctly (replicate servers) when needed? ...

how do i use delayed_job on heroku to send out emails that are batched?

Hi, I read the documentation on workers and delayed_job and couldn't follow exactly, so wanted to get head-start with some strategy and sample code. I have a controller which I use to send emails one by one. Now each day I want to check which emails need to be sent for the day, and then send them through heroku as a delayed_job. How ...

Simple solution for blog alongside ruby on rails app on heroku

I am developing a rails app which I am planning to host on heroku but I would also like to include a blog at http://mydomain.com/blog. I need a simple, single-author soultion with tags, commenting (I was thinking of disqus for this) and the ability to add images. What are my options apart from rolling my own? ...

Heroku - DelayedJob & Autoscale

Hi I'm pretty much in wonder of the idea of autoscaling workers on Heroku with this delayed job branch. Only problem is I can't figure out why it won't work. What I've got thus far: I've installed the branch as a plugin. Added the two lines of configuration as described in the branch comments: Delayed::Job.destroy_failed_jobs = fals...

Sinatra app running on Heroku has RegexpError

My sinatra app runs fine locally but when I push it to heroku it crashes and I get this error RegexpError - undefined (?...) sequence: /(?<=(LIST ALL SELECTED ))\w/: The line of code where the occurs is match = data.match('(?<=(LIST ALL SELECTED ))\w')[0] What I am trying to do is capture the next letter directly after 'LIST ALL S...

'No route matches' with paperclip and S3 on Heroku

Setting up paperclip to use S3 on my local dev system was a snap. However, I am not able to get it to work on Heroku. The file uploads successfully: [paperclip] Saving attachments. [paperclip] saving photos/2/small.jpg [paperclip] saving photos/2/original.jpg However, views that try to link to the upload get a routing error: Action...

model missing required attr_accessor for 'photo_file_name' when uploading with paperclip and S3 on heroku

Setting up paperclip with S3 in my linux dev environment was a snap -- everything works out of the box. However, I can't get it to work on Heroku. When I try to do an upload, the log shows: Processing ItemsController#create (for 72.177.97.9 at 2010-08-26 16:35:14) [POST] Parameters: {"commit"=>"Create", "authenticity_token"=>"0Hy3...

Array.count works fine locally but breaks on heroku

Right now, if I go to the index action of a model that I have, I don't show the basic table of data that rails generates for me if there are no existing records in the database. I do something like: <% if @my_records.count > 0 %> <table> <tr> <th>...</th> <th>...</th> <th>...</th> <th>etc</th> </tr> <% @my_records....

how to include stylesheet in root folder of rails 3

Due to some heroku problems with rails 3 and compass framework, we followed this guide: http://lds.li/post/673242899/compass-with-rails-3-on-heroku and moved our stylesheets to app_name/tmp/stylesheets. I tried using stylesheet_link_tag "#{Rails.root}/tmp/stylesheets/main.css" but that doesnt work as it looks for the css file in ...

git clone heroku ssh permission denied..

I just bought a new computer and I am trying to clone my heroku project on it. Here's what I've done so far. I didn't include the trace, but everything was saved in the right place, and the functions ran without errors. >> sudo ssh-keygen >> heroku keys:add >> sudo git clone -o heroku [email protected]:myapp.git Initialized empty Git rep...