Learn how to deploy your serverless to vivgrid.com by yc cli
yc
is the command-line interface (CLI) tool for deploying your serverless functions on Vivgrid.
It provides a convenient way to manage your deployments and serverless instances globally.
yc
, you can use the following command:
yc --help
to see all sub-commands.
General Options:
--app-key
: The application key of your Vivgrid project.--app-secret
: The application secret of your Vivgrid project.--sfn-name
: The name of your serverless function calling service.--zipper
: The URL of the Vivgrid Zipper Service endpoint, the default value is zipper.vivgrid.com
.--env
: The environment variables for your serverless function. you can pass multiple --env
options like yc deploy app.go --env OPENWEATHERMAP_API_KEY=token --env GITHUB_API_KEY=token
.yc.yml
file in the root of your project to configure the deployment settings instead of passing the options every time.
yc upload
command, after that, you can create the deployments by yc create
command.
yc start
will start the serverless on all regions. Requests will be routed to the nearest region by Vivgrid Geo-distributed Network.
Ctrl + C
.
yc.yml
Configuration Fileyc.yml
file in the root of your project to configure the deployment settings.
zipper
(optional): The URL of the Vivgrid Zipper Service endpoint, the default value is zipper.vivgrid.com:9000
.app-key
: The application key of your Vivgrid project.app-secret
: The application secret of your Vivgrid project.sfn-name
: The name of your serverless function calling service.--env
option.