英文:
Exclude files from causing GAE server restart
问题
有没有办法在我的应用程序根目录中的文件更改时避免GAE服务器重新启动。我使用Go(GAE服务器是基于Python的)运行时。
我的意图是在我的一些文件(html、css、js文件;位于/static文件夹下)更改时不重新加载服务器。这是为了避免开发过程中的启动时间。有没有办法将它们排除在文件监视之外。
谢谢。
英文:
Is there a way to avoid GAE server restart when the file within the root of my application changes. I use Go (GAE server is python based) runtime.
The intention is not to reload the server when some of my files (html, css, js files; which are under /static folder) changes. This is to avoid startup time during development. Any way to exclude them from file watch.
thanks.
答案1
得分: 0
如果您更改组成应用程序的文件,应用程序将需要重新启动以提供新文件。
如果这对您来说是一个真正的难题,我建议将文件托管在其他地方,比如CDN。您的应用程序和它使用的静态资源不需要全部放在同一个地方。
英文:
If you change the files that comprise your application, the application will need to restart in order to serve the new files.
If this is a real sticking point for you, I would suggest hosting the files elsewhere, like a CDN. Your application and the static resources that it employs do not need to be all in the same place.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论