Deploying to Production

Before you deploy

  1. Make sure your project conforms to the strict directory structure specified in Project Template.

  2. Make sure your test suite is passing and you're confident that the code is working.

  3. Make sure you're only using NPM packages from the allowed list.

  4. If your lambda sends transactions, make sure you have enough funding for gas costs, as described under Sending Transactions.

Deploy your lambda

To deploy your lambda, submit a PR (pull request) to the official Orbs Lambda repo on GitHub.

GitHub repo: https://github.com/orbs-network/orbs-lambda

Once your PR is submitted, circleCI will go over it and run some sanity tests to make sure it conforms with our guidelines. It produces error messages so you can get an underrating of what's wrong.

Additional errors and feedback over your PR will appear in GitHub as comments. If your PR is merged successfully, there were no errors in the submission.

Your lambda may take several hours until it starts executing in production by the validators of the network. Validators synchronize lambda changes automatically several times a day.

Last updated