Rails在清单Firefox OS中启动路径

时间:2014-06-13 10:00:08

标签: ruby-on-rails mobile web-applications firefox-os marketplace

我想在Firefox Market上传我的网站..但我必须有清单。 https://developer.mozilla.org/en-US/Apps/Build/Manifest

我不知道如何获得发射路径..因为它是mvc ..而且我没有任何 静态页面:/

我想从资源开始:仅限谈话:[:index] ..什么是主要网址? Tnx解释

1 个答案:

答案 0 :(得分:0)

如果您使用nginx创建应用,只需将此代码添加到/etc/nginx/mime.types

即可
types {
  text/html   html htm shtml;
  text/css    css;
  text/xml    xml;
  application/x-web-app-manifest+json   webapp;
}

另外,为了参考,您应该阅读the MDN docs on how to serve manifests