appharbor没有部署静态内容(appharbor not deploying static content)

编程入门 行业动态 更新时间:2024-10-28 20:22:55
appharbor没有部署静态内容(appharbor not deploying static content)

我刚开始在AppHarbor上托管一个Web应用程序,我配置它来监听我的github存储库提交。

每次提交后,我都会在AppHarbor上看到运行测试和部署的构建,但是当我进入我的应用页面时,在AppHarbor上托管我没有看到任何图像,并且缺少js脚本。

我实际上可以在github源代码中看到它们,但是当我从AppHarbor下载它时,它们似乎从我的'static'文件夹中丢失了......

还有其他人遇到这个问题吗?......任何可能的原因都是这个?...

I just started hosting a web application on AppHarbor, and i configured it to listen to my github repository commits.

After each commit, I see on AppHarbor the build running the tests, and deploying, but when i go to my app page, hosted on AppHarbor I don't see any images, and the js scripts are missing.

I can actually see them in the github source, but when I download the package from AppHarbor, they seem to be missing from my 'static' folder...

Anyone else run into this problem ?... Any possible causes for this ?...

最满意答案

我解决了这个问题 -

发生这种情况的原因是因为内容未被复制到输出目录。 我不确切知道AppHarbor如何在那里构建部署脚本,但我将Copy To Output Directory选项值更改为Copy Always ,这解决了问题。 ( Build Action已设置为Content )

I solved the problem -

The reason this was happening because the content wasn't being copied to the output directory. I don't know exactly how AppHarbor build there Deployment scripts, but I changed the Copy To Output Directory option value to Copy Always and this solved the problem. (The Build Action was already set to Content)

更多推荐

本文发布于:2023-07-16 07:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1125556.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:静态   内容   appharbor   content   static

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!