CNode

nae 客户端bugfix - 客户端的ignore机制

Ffish发布于14 年前最后回复14 年前9 回复5797 浏览0 收藏

@suqian 在这个帖子中提到的bug, http://club.cnodejs.org/topic/4f579de30b61f9167e000e81

ignore机制对目录的识别存在问题,已经修复。请及时更新nae客户端:

>nae update

nae客户端通过app根目录下的 .naeignore文件来控制同步中需要忽略的内容,这个文件可以在本地编辑,也可以在线上编辑器中编辑。

如果你还没安装客户端,看这里: 查看安装说明

.naeignore 的规则:

  • 一行一条规则
  • 一条规则就是一条路劲(文件or目录的路劲)
  • 规则中可使用做通配(注意不是正则里的 “.”规则, 只是*)

.naeignore规则例子

config.json
#意味着不同步config.json文件
config*
#意味着不同步configXXXXX文件或目录,用正则描述的话既匹配 config.* 规则
public/user_data/*
#意味着不同步public/user_data目录(目录以及目录下的文件,都不会同步)
查看回复

回复 (9)

F
fengmk2#1·14 年前

nae start app 出错了。

[INFO] * connection established !
[ERROR] server-side connection timeout
[INFO] * connection closed !
J
jiyinyiyong#2·14 年前

我把 -R/usr/local/ 的权限改了的, 应该跟 rm 不相关的感觉

$ nae update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2694  100  2694    0     0  17986      0 --:--:-- --:--:-- --:--:--  202k
install path [default:/usr/local/lib/nae]
rm: invalid option -- 'd'
Try `rm --help' for more information.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19415  100 19415    0     0   575k      0 --:--:-- --:--:-- --:--:-- 1053k
extract files
rm: invalid option -- 'd'
Try `rm --help' for more information.
ln: failed to create symbolic link `./nae': File exists
[success] nae installed!
$ nae -v
Node App Engine Client Tool - v1.1
build:2012/03/08 14:04:58
http://cnodejs.net
F
fish#6·14 年前
引用 jiyinyiyong我把 R/usr/local/ 的权限改了的, 应该跟 rm 不相关的感觉 $ nae update % Total % Received % Xferd Average Speed Time...

@jiyinyiyong 晓得了,d是windows下 git-bash 里的rm 的参数,修复了这个问题,更新一下,不会再提示了

K
kamaliang#8·14 年前

@fish 可是我还是过滤不了二级目录啊,版本是1.1.2,win os

参与回复
登录后即可参与回复。登录