我刚开始在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)
更多推荐
发布评论