【问题标题】:Sails production mode searching assets in different pathSails 生产模式在不同路径中搜索资产
【发布时间】:2016-06-06 07:48:55
【问题描述】:

当我举起风帆应用程序时,一切正常。但是当我在 production 模式下使用sails 应用程序时,资产没有正确加载。 请看下图。

In the image /my-course-dashboard is my route. sails is looking for my styles in my-course-dashboard folder instead instead of http://localhost:1337/linker/styles.

我是不是做错了什么。是什么导致了此类问题。

Here is my pipeline.js file snippet

我使用的是 Sails 0.12.1 版。 请帮忙。欢迎提出建议。

提前致谢。

【问题讨论】:

  • 你在路由中指定了前缀吗?

标签: sails.js pug


【解决方案1】:
  • 您是否尝试设置文件夹的权限?
  • 记住文件来自.tmp/public/ 文件夹。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-06-10
    • 2013-07-16
    • 1970-01-01
    • 2014-03-25
    • 1970-01-01
    • 1970-01-01
    • 2019-10-13
    • 1970-01-01
    相关资源
    最近更新 更多