Vagrant和Google App Engine不会同步文件 [英] Vagrant and Google App Engine are not syncing files

查看:118
本文介绍了Vagrant和Google App Engine不会同步文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



同步文件夹起作用,我可以看到所有的文件。

/ p>

但是,在我运行开发应用程序服务器之后,主机对python文件的更改不会动态更新。



要查看我的python文件的更新,我必须在我的虚拟机中重新启动应用服务器。



,我有grunt任务看html / css文件。这些也不会在虚拟机以外的编辑器更新时正确同步。



我怀疑这与在主机上更改Vagrant syncs文件的方式有关。 / p>

有没有人找到解决这个问题的办法?

解决方案

答案!

在最新版本的Google应用引擎中,有一个新参数可以传递给dev_appserver.py。



使用 dev_appserver.py --use_mtime_file_watcher = True 可以工作!

2秒检测,但它仍然有效!

I am currently using Vagrant to spin up a VM to run GAE's dev_appserver in the Virtual Machine.

The sync folder works and I can see all the files.

But, after I run the dev appserver, changes to python files by the host machine are not dynamically updated.

To see updates to my python files, I have to relaunch dev appserver in my Virtual Machine.

Also, I have grunt tasks that watch html/css files. These also do not sync properly when updated by editors outside the Virtual Machine.

I suspect that it's something to do with the way Vagrant syncs files changed on the host machine.

Has anyone found a solution to this problem?

解决方案

Finally found the answer!

In the latest version of google app engine, there is a new parameter you can pass to dev_appserver.py.

using dev_appserver.py --use_mtime_file_watcher=True works!

Although the change takes 1-2 seconds to detect, but it still works!

这篇关于Vagrant和Google App Engine不会同步文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆