Created
          August 4, 2011 09:37 
        
      - 
      
 - 
        
Save johanb/1124846 to your computer and use it in GitHub Desktop.  
    Rails 3.1.rc5 on Heroku Cedar
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require File.expand_path('../boot', __FILE__) | |
| require 'rails/all' | |
| Bundler.require *Rails.groups(:assets) if defined?(Bundler) | |
| module TestApp | |
| class Application < Rails::Application | |
| config.plugins = [ :exception_notification, :country_select, :all ] #:ssl_requirement, | |
| config.encoding = "utf-8" | |
| config.filter_parameters += [:password, :password_confirmation] | |
| config.assets.enabled = true | |
| config.generators do |g| | |
| g.test_framework :rspec, :views => false, :fixture => true | |
| g.fixture_replacement :factory_girl, :dir => 'spec/factories' | |
| end | |
| end | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | source 'http://rubygems.org' | |
| gem 'rails', '3.1.0.rc5' | |
| group :assets do | |
| gem 'sass-rails', "~> 3.1.0.rc" | |
| gem 'coffee-rails', "~> 3.1.0.rc" | |
| gem 'uglifier' | |
| #gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git' | |
| end | |
| gem 'jquery-rails' | |
| gem 'devise' #, :git => 'https://github.com/plataformatec/devise.git' | |
| gem 'devise_invitable' | |
| gem "oa-oauth", :require => "omniauth/oauth" | |
| gem 'inherited_resources' | |
| gem 'resque', :require => "resque/server" | |
| gem 'geocoder' | |
| gem 'koala' | |
| gem 'formtastic' | |
| gem 'simple-navigation' | |
| gem 'kaminari' | |
| gem 'has_scope' | |
| gem 'cancan' | |
| group :test do | |
| gem 'turn', :require => false | |
| gem "mocha" | |
| gem "launchy", "~> 2.0.4" | |
| gem 'factory_girl_rails' | |
| gem 'cucumber-rails' | |
| gem 'capybara' | |
| gem 'guard-cucumber' | |
| gem "guard-rspec" | |
| gem 'database_cleaner' | |
| end | |
| group :development do | |
| gem 'nifty-generators', :git => 'git://github.com/ryanb/nifty-generators.git' | |
| end | |
| group :production, :staging do | |
| gem 'pg' | |
| gem 'dalli' | |
| gem 'thin' | |
| #gem 'therubyracer-heroku', '0.8.1.pre3' | |
| end | |
| group :development, :test do | |
| gem 'sqlite3' | |
| gem 'ruby-debug19', :require => 'ruby-debug' | |
| gem "rspec-rails" | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | TestApp::Application.configure do | |
| #site isn't live yet and is staging | |
| config.whiny_nils = true | |
| config.consider_all_requests_local = true | |
| config.action_mailer.delivery_method = :smtp | |
| config.action_mailer.perform_deliveries = true | |
| config.action_mailer.default :charset => "utf-8" | |
| config.action_mailer.raise_delivery_errors = true | |
| config.action_mailer.smtp_settings = { | |
| :address => "smtp.sendgrid.net", | |
| :port => "25", | |
| :authentication => :plain, | |
| :user_name => ENV['SENDGRID_USERNAME'], | |
| :password => ENV['SENDGRID_PASSWORD'], | |
| :domain => ENV['SENDGRID_DOMAIN'] | |
| } | |
| config.active_support.deprecation = :log | |
| # Only use best-standards-support built into browsers | |
| config.action_dispatch.best_standards_support = :builtin | |
| config.action_dispatch.x_sendfile_header = nil | |
| #Assets | |
| config.assets.compress = true | |
| config.assets.js_compressor = :uglifier | |
| #Caching | |
| #config.cache_store = :dalli_store | |
| config.cache_classes = true | |
| #config.action_controller.perform_caching = true | |
| end | |
| uri = URI.parse(ENV["REDISTOGO_URL"]) | |
| Resque.redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password) | 
Just making sure you have seen http://devcenter.heroku.com/articles/rails31_heroku_cedar
Look at the bottom topic Updating PATH, does your path include bin?
It used to be that you had to add therubyracer-heroku gem in your production bundler group (which fixed exactly the same error for me on rails 3.1.0.rc4), but now you shouldn't have to include it. But as an experiment try to add therubyracer-heroku gem and bundle install.
@kmamykin Thx, I had seen the post. Just before you replied I realized I had /bin in my path instead of bin which resulted into it not working. After updating the path it works. Thanks for you time however ;)
I could get it to work with the ruby racer gem indeed but without it kept failing. Now I know why.
Rock on!
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
To be clear my rack_env en rails_env are both set to staging on this particular Heroku app ;)
Only works if you have the path variables set correctly ;)