Shopify ruby​​ on rails app failying to auth

时间:2018-05-01 22:10:35

标签: ruby-on-rails ruby shopify shopify-app

我刚刚使用以下生成器创建了一个RoR shopify应用程序:

rails generate shopify_app --api_key <your_api_key> --secret <your_app_secret>   

我将自己的域名添加到列入白名单的网址,但我一直收到此错误,似乎shopify应用内部存在一些问题。

当我将网站的网址放在我的应用中以便在其上安装时,会出现错误(application.delgic.com)

F, [2018-05-01T22:01:18.149098 #22506] FATAL -- : [cd2e0b4c-5dfd-422b-959f-7e191bc47ff1]   
F, [2018-05-01T22:01:18.149175 #22506] FATAL -- : [cd2e0b4c-5dfd-422b-959f-7e191bc47ff1] 


ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "shops" does not exist
    LINE 8:                WHERE a.attrelid = '"shops"'::regclass
                                              ^
    :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                         pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
                 (SELECT c.collname FROM pg_collation c, pg_type t
                   WHERE c.oid = a.attcollation AND t.oid = a.atttypid AND a.attcollation <> t.typcollation),
                         col_description(a.attrelid, a.attnum) AS comment
                    FROM pg_attribute a LEFT JOIN pg_attrdef d
                      ON a.attrelid = d.adrelid AND a.attnum = d.adnum
                   WHERE a.attrelid = '"shops"'::regclass
                     AND a.attnum > 0 AND NOT a.attisdropped
                   ORDER BY a.attnum
    ):

F, [2018-05-01T22:01:18.149262 #22506] FATAL -- : [cd2e0b4c-5dfd-422b-959f-7e191bc47ff1]   
F, [2018-05-01T22:01:18.149329 #22506] FATAL -- : [cd2e0b4c-5

此外,我已经完成了所有迁移。

1 个答案:

答案 0 :(得分:1)

您的数据库表不存在。所以你认为你成功地运行了迁移,也许你做了,但你的RoR应用程序似乎并不这么认为。我会打开一个控制台,看看你是否能看到桌子。如果它在那里,哇!还有其他事情正在发生,你必须提供更多信息。