Skip to content

Instantly share code, notes, and snippets.

@ozbillwang
Last active January 24, 2018 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozbillwang/e74b8096a555a56eb4ac295d08592483 to your computer and use it in GitHub Desktop.
Save ozbillwang/e74b8096a555a56eb4ac295d08592483 to your computer and use it in GitHub Desktop.
how to build serverless framework by yourself.

Sometime, you can't wait and try new features in serverless framework (github.com/serverless/serverless)

serverless/serverless#4325 (comment)

run below commands, this build will generate new serverless command.

cd <serverless_repo_full_path>
# Fake the environment "SENTRY_DSN", otherwise, it will stop the build
export SENTRY_DSN=demo
./scripts/shrinkwrap && node ./scripts/pre-release.js
ls -l bin/serverless

Then you should be fine to use this latest version, for example, run below command to do the deployment

 <serverless_repo_full_path>/bin/serverless deploy
@ozbillwang
Copy link
Author

serverless/serverless#4655 (comment)

Hi, @lgaidzik.
Currently, the shared API functionality has not been available yet.
It will be released in v 1.26.0.
You can install it with npm install -g serverless/serverless#master if you want to use it as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment