创建并部署新的shopify应用程序后 - 我已将其安装到我的商店,安装后将其重定向到我home#index
的{{1}}页面,然后转到另一页routes.rb
。
首次观看屏幕2秒:
404 - 未找到:
Heroku app log:
2017-08-31T17:03:15.542454 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.541990#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9]开始GET“/?amac = 37e4dde7daf5891a1ee93920cdcb02327c0f4a4444D6c601ab08d565a5d49& shop = andreyka.myshopify.com& timestamp = 1504198994”for 80.246.140.79 at 2017-08-31 17:03:15 +0000
2017-08-31T17:03:15.550387 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.550211#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9] HomeController #index处理为HTML
2017-08-31T17:03:15.550397 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.550346#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9]参数:{“hmac”=>“37e4dde7daf5891a1ee93920cdcb02327c0b7f4a44b6d65c601ab08d565a5d49”,“shop”=>“andreyka.myshopify.com”,“timestamp”=>“1504198994”}
2017-08-31T17:03:15.557075 + 00:00 app [web.1]:D,[2017-08-31T17:03:15.556973#4] DEBUG - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9] [1m [36mShop负载(0.9ms)[0m [1m [34mSELECT“shop”。* FROM“shop”WHERE“shops”。“id”= $ 1 LIMIT $ 2 [0m [[“id”,1], [“LIMIT”,1]]
2017-08-31T17:03:15.987988 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.987773#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9]在layouts / embedded_app中渲染home / index.html.erb
2017-08-31T17:03:15.988722 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.988635#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9]在layouts / embedded_app(0.6ms)内渲染home / index.html.erb
2017-08-31T17:03:15.990684 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.990595#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9]渲染布局/ _flash_messages.html.erb(0.2ms)
2017-08-31T17:03:15.991334 + 00:00 app [web.1]:I,[2017-08-31T17:03:15.991244#4] INFO - :[b31d1ac2-53c8-4f1d-8c2a -89cb7817bdf9] 441ms完成200 OK(浏览次数:5.4ms | ActiveRecord:0.9ms)
2017-08-31T17:03:15.992454 + 00:00 heroku [router]:at = info method = GET path =“/?hmac = 37e4dde7daf5891a1ee93920cdcb02327c0b7f4a44b6d65c601ab08d565a5d49& shop = andreyka.myshopify.com& timestamp = 1504198994”host = blackdiamonds.herokuapp.com request_id = b31d1ac2-53c8-4f1d-8c2a-89cb7817bdf9 fwd =“80.246.140.79”dyno = web.1 connect = 0ms service = 459ms status = 200 bytes = 2738 protocol = https
404 - Not found
答案 0 :(得分:0)
您应该检查您的应用是否设置为Shopify中的嵌入式应用。
您可以转到Shopify Partners website,点击您的应用,然后转到“扩展程序”标签来执行此操作。如果设置正确,您应该在“嵌入Shopify管理员”部分中看到禁用按钮,如果不是,则会显示“启用”,只需要点击即可。