heroku

A workaround for SSL on Heroku

Got an app running great on Heroku, only issue is that their custom-domain SSL solution is way expensive (http://docs.heroku.com/ssl), leaving piggybacking of their *.heroku.com as an only viable option. The good thing is that my app only requires SSL for a couple of pages (for ordering). Right now, I use "ssl_required" in my controlle...

Modifying rails route helper

I'd like to modify the behavior of the rails route helper *_url for a single route/page. Here's what I'm try to do: User visits: http://test1.myapp.com/account All the *_url routing helpers resolve to http://test1.myapp.com/ as normal. But, then if the user goes to https://myapp.heroku.com/account/billing?id=test1 I'd like all t...

Access rails session information by session id

I'm using the default cookie based session store. Basically, I'm using heroku and I need to go from my app: http://test1.myapp.com over to heroku for one page: http://myapp.heroku.com/billing - so I need to access the session when I go to the heroku url. I'd like to access the session[:user_id] on the heroku page, but when is go to ...

Setting cookies in rails with domain option

Hi, I'm trying to set a cookie in one domain and access it from another. Is this possible? Here's what I'm doing in my app: In a controller, the test action is accessed via this url: http://myapp.com/account/test def test cookies[:foo] = { :value => 'something', :domain => 'myapp.heroku.com' } end In same controller...

Deploying to multiple Heroku instances

Hi, I've read a couple of the other posts on this issue, but seemed to be stumped on something. I'm trying to have two separate branches that push out to two different Heroku instances - one production and one staging. I suppose my setup will look as follows: Local Myapp | | - master > - master | | | ...

push rails app to heroku

I am trying to push a rails application to heroku. When I get to the last step: git push heroku master It doesn't work and gives me these errors: Counting objects: 85, done. Delta compression using up to 2 threads. Compressing objects: 100% (74/74), done. Writing objects: 100% (85/85), 24.38 KiB, done. Total 85 (delta 23), reused 0 ...

heroku css stylesheet won't display

hi i have just deployed my rails application but the css stylesheet wont appear I'm calling the stylesheet as follows: <%= stylesheet_link_tag 'layout' %> thnx in advance ...

jruby public database adapter

Hi I'm trying to deploy my rails application from jRuby to Heroku The db is giving me problems: $ heroku db:push Auto-detected local database: jdbcmysql://root:password@localhost/product_develo pment?encoding=utf8 Failed to connect to database: Sequel::AdapterNotFound -> Could not load jdbcmysql adapter: no such file to load -- /us...

Authlogic throwing errors on Heroku

Yes, I've read this. This is what I'm getting in my production.log: ActionView::TemplateError (undefined method `password' for #<User:0x2b0ddb58cdc0>) on line #11 of app/views/users/new.html.erb: 8: </p> 9: <p> 10: <%= f.label :password, "Password:" %><br /> 11: <%= f.password_field :password %> 12: ...

User Authentication Across Multiple Domains

Posted a previous question on this, but have a followup. I was trying to create a workaround to use SSL on the expensive custom domain. I'm willing to live with bumping a user to https://app.heroku.com from http://www.app.com for certain secure pages, and have monkey-patched SSL required to make this happen. However, now this issue is...

Heroku db:push doesnt work. Says it needs taps installed even after taps has been installed

I can't seem to get heroku to db:push, even though I have installed taps. It doesnt seem to believe me. I also checked and found a folder here: /Library/Ruby/Gems/1.8/gems/taps-0.2.23/ UM4345s-MacBook-Pro:photosite $ sudo gem install taps Password: Successfully installed rack-1.1.0 Successfully installed sinatra-0.9.2 Success...

Heroku and DB GUI

Hi, Is there anyway to use a PostgreSQL GUI to modify the database contents without doing a db:pull? I want to administer my database without taking it off line... Any ideas? Thanks ...

Execute a binary file in ruby (on Heroku)

Is it possible to execute a little binary file (required for payment processing) with Kernel#exec from a ruby app hosted on Heroku ? Or do I need to switch to another rails hosting solution ? ...

Heroku in real life apps

What is your experience using Ruby on Rails on Heroku in production mode? Apart of the issue of the expensive https, do you see any drawback in the way it manages processes, memory and storage? The people at Heroku is quite nice and I'm sure they are willing to answer my questions, but I would like some opinions in the customer side. ...

how to insert rows into heroku table

I just pushed my local rails app to heroku and then ran heroku rake db:migrate This created all the tables and stuff on my heroku server. However, I have just 4 rows in a table which I would like to insert into tables just created on heroku. So I used heroku db:push But this gives me an error Auto-detected local database...

heroku rake migrate not working

I am just trying to simply do the following: my@ubuntu-lappy:~/rails/app_soft$ heroku rake db:migrate rake aborted! Please install the adapter: `gem install activerecord--adapter` (no such file to load -- active_record/connection_adapters/_adapter) What am i doing wrong? In the past I've successfully ran heroku rake db:migrate gem ...

Processing incoming emails on Heroku

For my side project kwiqi, I use ActionMailer's 'receive' method to process incoming email messages for tracking my expenses. Heroku doesn't have a local mail server running that same code will not work. One solution I've thought of is to periodically hit a controller action that will pull messages from Gmail. Are there other solution...

rails in heroku: one domain, several applications

How can I do to run an application in www.domain.com/folder1 and other in www.domain/folder2, using heroku? ...

Jruby Gem For Heroku

I am trying to deploy a Jruby app on Heroku. Unfortunately, when I try to install gem for Heroku using jruby, I get following error: /proj/jruby-1.3.1/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native extensions. Check wiki.jruby.org for alternatives. (NotImplementedError) from /proj/jruby-1.3.1/lib/ruby/1.8/mkmf.rb:1:in `requir...

Response time increasing (worsening) over time with consistent load

Ok. I know I don't have a lot of information. That is, essentially, the reason for my question. I am building a game using Flash/Flex and Rails on the back-end. Communication between the two is via WebORB. Here is what is happening. When I start the client an operation calls the server every 60 seconds (not much, right?) which results i...