File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ Dir [./code] uploaded successfully.
9393
9494> ⚠️ 注意:在使用的时候,如果遇到文件已存在,需要按需通过` --override ` /` -o ` 参数进行强制覆盖。
9595
96+ ### ignore运用
97+
98+ 在需要上传的代码目录放置一个 .nasignore 文件,部署文件的时候可以排除掉 .nasignore 描述的文件或者文件夹(底层实现参考 [ ignore-walk] ( https://www.npmjs.com/package/ignore-walk ) )。
99+
100+ 但是在实际运用中,需要上传到 nas 的部分常常是通过自动化完成,所以可以通过 ` --ignore-file ` 指定ignore文件的具体路径,然后我们会将这个文件复制到需要上传的代码根目录下(` .nas_tmp_ignore ` 的临时文件)。
101+
102+
103+
96104## nas download 命令
97105
98106` nas download ` 命令,是将挂在在函数计算的 NAS 系统中的文件下载到本地。
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ export default class FcBaseComponent extends EntryPublicMethod {
141141 }
142142 }
143143 // https://github.com/devsapp/fc/issues/383
144- if ( deployRes . systemDomain && ! [ 'custom' , 'custom-container' ] . includes ( props . function ?. runtime ) ) {
144+ if ( deployRes . systemDomain ) {
145145 result . url = {
146146 system_url : deployRes . systemDomain ,
147147 } ;
You can’t perform that action at this time.
0 commit comments