我试图将应用程序部署到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)
任何线索。
答案 0 :(得分:0)
DEPRECATION WARNING
只是警告你有一些插件将在Rails 4.0中弃用。
您应关注的唯一错误消息是d4pj1nq6eo44fj already exists
,这意味着您已在heroku上拥有此应用的数据库。
也许您想要进行迁移?
heroku run rake db:migrate