Heroku运行迁移rails4和jruby

时间:2013-11-14 11:13:17

标签: heroku ruby-on-rails-4 jruby

我正在使用带有jruby的rails4。 成功推送到heroku后,我的应用程序正在运行。接下来我需要运行迁移,我做了

    $ 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永远不会消失,迁移永远不会运行。

这是我的宝石文件

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

如何立即运行迁移?此外,应用程序也不会获取环境变量。

1 个答案:

答案 0 :(得分:0)