0

ローカル ホストで正常に動作しているアプリを heroku にデプロイしようとしています。ローカル マシンで sqlite を使用しています。デプロイはできたが、シードデータでデータベースを移行しようとすると

次のエラーが表示されます。

C:\Users\WASSWA SAM\railsapps\UIDassignment [master +27 ~0 -0 !]> heroku run rak
e db:setup
Running `rake db:setup` attached to terminal...  !    autoupdate in progress
up, run.1
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support
for these plugins will be removed in Rails 4.0. Move them out and bundle them i
n your Gemfile, or fold them in to your app as lib/myplugin/* and config/initial
izers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required
)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support
for these plugins will be removed in Rails 4.0. Move them out and bundle them i
n your Gemfile, or fold them in to your app as lib/myplugin/* and config/initial
izers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonr
ails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required
)> at /app/Rakefile:7)
d4pj1nq6eo44fj already exists
rake aborted!
uninitialized constant User

Tasks: TOP => db:schema:load => environment
(See full trace by running task with --trace)

手がかり。

4

1 に答える 1

0

DEPRECATION WARNINGRails 4.0 で非推奨になるプラグインがあることを警告します。

注意すべき唯一のエラー メッセージは です。これはd4pj1nq6eo44fj already exists、heroku にこのアプリのデータベースが既にあることを意味します。

たぶん、代わりに移行したいですか?

heroku run rake db:migrate

于 2012-11-01T01:07:50.210 に答える