The package command builds all containers and optionally pushes them to a container registry as well. You can specify a single single service with the --service
option.
Package all services as containers
serverless package
Package the warehouse
service and push it to a container registry
serverless package --service warehouse --push
--service
Name of service to package--push
Push packaged container(s) to the container registry
The asdeploy
command deploys your entire project to Akka Serverless. Run this command when you have made any changes (i.e., you edited serverless.yml). Use serverless asdeploy --service warehouse
when you have made code changes and you want to quickly upload your updated code to Akka Serverless.
Deploy your entire project
serverless asdeploy
Deploy only the warehouse service
serverless asdeploy --service warehouse
Deploy the warehouse service and expose it over HTTP
serverless asdeploy --service warehouse --expose
--service
Name of service to package--expose
When set, adds an HTTP endpoint to your service--dryrun
When set, only prints the commands without execution.
The remove command will remove services from the Akka Serverless project.
Remove all services from a project
serverless remove
Remove only the warehouse service
serverless remove --service warehouse
--dryrun
or-d
When set, only prints the commands without execution.
The aslogs
commands retrieves the logs for a specific service from Akka Serverless
Get the logs from the warehouse service
serverless aslogs --service warehouse
--dryrun
or-d
When set, only prints the commands without execution.
The local
command lets you run services locally. When you select a service, a new docker bridge network is created where the service and a proxy are started. The proxy server is exposed on the port you specify with proxyPort
in your serverless.yml
.
Run the warehouse service locally
serverless local --command start --service warehouse
Stop the warehouse service running locally
serverless local --command stop --service warehouse