
上QQ阅读APP看书,第一时间看更新
Example 2 – the Apex deployment tool
In this second example, we will demonstrate how to deploy all functions, specific functions, and function deployment, using wild card sign where it will include all matching functions from the mentioned directory.
Deploy all functions in the current directory:
$ apex deploy
Deploy all functions in the directory ~/dev/myapp:
$ apex deploy -C ~/dev/myapp
Deploy specific functions:
$ apex deploy auth
$ apex deploy auth api
Deploy all functions that have a name starting with auth:
$ apex deploy auth*
Deploy all functions ending with _reporter:
$ apex deploy *_reporter
Deploy from an existing zip file:
$ apex build auth > /tmp/auth.zip
$ apex deploy auth --zip /tmp/auth.zip