2013-11-14 93 views
2

我正在使用jruby的rails4。 成功推送到heroku後,我的應用程序正在運行。接下來,我需要運行遷移和我做Heroku運行遷移rails4和jruby

 
    $ heroku run rake db:migrate 
    Running `rake db:migrate` attached to terminal... up, run.3257 
    stty: stdin isn't a terminal 

stty: stdin isn't a terminal永不褪色和遷移永遠不會運行。

這裏是我的Gemfile

source 'https://rubygems.org' 
ruby '1.9.3', engine: "jruby", engine_version: "1.7.6" 

gem 'rails', "4.0.0" 


group :assets do 
    gem 'sass-rails' 
    gem 'coffee-rails' 
end 


group :development do 
    gem 'jdbc-sqlite3' 
    gem 'activerecord-jdbc-adapter' 
end 

group :production do 
    gem 'activerecord-jdbcpostgresql-adapter' 
    gem 'rails_12factor' 
end 

gem 'jquery-rails' 
gem 'bootstrap-sass', '~> 2.3.2.2' 
gem 'cancan' 
gem 'devise' 
gem 'figaro' 
gem 'rolify', git: "https://github.com/EppO/rolify.git" 
gem 'simple_form' 
gem 'stripe' 
gem 'stripe_event' 

gem 'puma' 

gem 'slim-rails' 

gem 'protected_attributes' 


group :development, :test do 
    gem 'factory_girl_rails' 
    gem 'rspec-rails' 
end 

group :test do 
    gem 'capybara' 
    gem 'cucumber-rails', :require=>false 
    gem 'database_cleaner', '1.0.1' 
    gem 'email_spec' 
    gem 'launchy' 
end 

現在如何運行遷移?此外,應用程序也不會拾取環境變量。

回答

相關問題