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 WARNING只是警告你,你有一些插件将在 Rails 4.0 中被弃用。

您应该关心的唯一错误消息是d4pj1nq6eo44fj already exists,这意味着您已经在 heroku 上拥有此应用程序的数据库。

也许你想做迁移?

heroku run rake db:migrate

于 2012-11-01T01:07:50.210 回答