【发布时间】:2012-05-31 15:06:10
【问题描述】:
我目前正在使用 play framework 2 开发一个 web 应用程序。我在 /public 目录下创建了一个文件夹“files”。当我使用“play run”启动服务器时,该目录下的所有资源都可以访问。
部署到服务器后。我通过运行“play start”启动服务器,发现“files”下的资源再也找不到了。
我想知道“play start”和“play run”不一致的原因是什么
更新:经过几次试验。我发现是新上传的资源无法显示。场景如下:
1. play start --> server starts.
2. use application to upload a few images to the server.
3. try to display the uploaded image --> nothing is shown. browser shows the resource is not accessible.
4. kill the server process with task manager.
5. rm RUNNING_PID
6. run play start again
7. Try to display the uploaded image --> now the images are showing.
所以,看起来像“播放开始”的“热更新”问题 我可以做任何配置来让服务器接受更改吗? 谢谢。
【问题讨论】:
-
已经在您本地的
play start进行测试?如果有堆栈跟踪,请添加到您的帖子中。 -
不,由于我在 stackoverflow.com/questions/10713173/… 中描述的错误,我无法在本地计算机上运行“播放开始”
标签: playframework playframework-2.0