2010-03-30 72 views
1

有人用過Typus(管理插件for rails)HerokuTypus在Heroku中不工作(錯誤500)我做錯了什麼?

http://intraducibles.com/projects/typus/install

我按照說明,在我的本地機器(滑軌2.3.5)工作正常,但是當我部署到Heroku崩潰。

我在做什麼錯了?

日誌:

Logfile created on Mon Mar 29 18:14:06 -0700 2010 

Processing TypusController#dashboard (for 190.196.113.93 at 2010-03-29 18:14:07) [GET] 
    Parameters: {"action"=>"dashboard", "controller"=>"typus"} 

ActiveRecord::StatementInvalid (PGError: ERROR: relation "typus_users" does not exist 
:    SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull 
       FROM pg_attribute a LEFT JOIN pg_attrdef d 
       ON a.attrelid = d.adrelid AND a.attnum = d.adnum 
      WHERE a.attrelid = '"typus_users"'::regclass 
       AND a.attnum > 0 AND NOT a.attisdropped 
      ORDER BY a.attnum 
): 
    vendor/plugins/typus/app/controllers/typus_controller.rb:128:in `verify_typus_users_table_schema' 
    /home/heroku_rack/lib/static_assets.rb:9:in `call' 
    /home/heroku_rack/lib/last_access.rb:25:in `call' 
    /home/heroku_rack/lib/date_header.rb:14:in `call' 
    thin (1.0.1) lib/thin/connection.rb:80:in `pre_process' 
    thin (1.0.1) lib/thin/connection.rb:78:in `catch' 
    thin (1.0.1) lib/thin/connection.rb:78:in `pre_process' 
    thin (1.0.1) lib/thin/connection.rb:57:in `process' 
    thin (1.0.1) lib/thin/connection.rb:42:in `receive_data' 
    eventmachine (0.12.6) lib/eventmachine.rb:240:in `run_machine' 
    eventmachine (0.12.6) lib/eventmachine.rb:240:in `run' 
    thin (1.0.1) lib/thin/backends/base.rb:57:in `start' 
    thin (1.0.1) lib/thin/server.rb:150:in `start' 
    thin (1.0.1) lib/thin/controllers/controller.rb:80:in `start' 
    thin (1.0.1) lib/thin/runner.rb:173:in `send' 
    thin (1.0.1) lib/thin/runner.rb:173:in `run_command' 
    thin (1.0.1) lib/thin/runner.rb:139:in `run!' 
    thin (1.0.1) bin/thin:6 
    /usr/local/bin/thin:20:in `load' 
    /usr/local/bin/thin:20 

Rendering /disk1/home/slugs/157361_3469154_60b1/mnt/public/500.html (500 Internal Server Error) 

回答

3

貌似typus用戶表不存在。

你是否在heroku上移動(heroku rake db:migrate)?或者使用db:push來推動你的模式?

編輯:添加heroku命令遷移

+0

是的,它的工作!非常感謝(我必須等待幾分鐘才能接受你的答案) – Victor 2010-03-30 01:26:00