2

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

    $ heroku 运行 rake db:migrate
    运行附加到终端的“rake db:migrate”...起来,运行.3257
    stty:stdin 不是终端

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

现在如何运行迁移?应用程序也不会拾取环境变量。

4

1 回答 1

0

您是否尝试过使用 jruby 构建包?

https://github.com/jruby/heroku-buildpack-jruby

https://devcenter.heroku.com/articles/buildpacks

于 2013-11-15T18:01:57.150 回答