use*_*643 7 ruby-on-rails heroku authlogic
是的,我读过这个.
这是我在我的production.log中得到的:
ActionView::TemplateError (undefined method `password' for #<User:0x2b0ddb58cdc0>) on line #11 of app/views/users/new.html.erb:
8: </p>
9: <p>
10: <%= f.label :password, "Password:" %><br />
11: <%= f.password_field :password %>
12: </p>
13: <p>
14: <%= f.label :password_confirmation, "Password again:" %><br />
Run Code Online (Sandbox Code Playgroud)
当我尝试:
$ heroku rake db:reset RAILS_ENV=production
Run Code Online (Sandbox Code Playgroud)
我明白了:
yeqynzfiku already exists
(in /disk1/home/slugs/109616_e6df6f2_8837/mnt)
Couldn't drop yeqynzfiku : #<ActiveRecord::StatementInvalid: PGError: ERROR: must be owner of database yeqynzfiku
: DROP DATABASE IF EXISTS "yeqynzfiku">
Run Code Online (Sandbox Code Playgroud)
我不知道这意味着什么.我也试过了
$ heroku rake db:reset
$ heroku rake db:migrate RAILS_ENV=production
$ heroku rake db:migrate
$ heroku rake gems:install (for what it's worth)
Run Code Online (Sandbox Code Playgroud)
在开发和生产模式下,一切都在本地运行良好.我的应用程序中有一个.gems文件,当我第一次推送到Heroku时,它似乎安装了AuthLogic和Paperclip就好了.
难住了.谢谢.
Luk*_*ncl 21
听起来你解决了它,但是有了这样的问题,我觉得它很方便heroku restart.
例如,在运行与heroku rake db:migrate应用程序的迁移之后,需要重新启动它才会看到这些新列.
| 归档时间: |
|
| 查看次数: |
2562 次 |
| 最近记录: |