ember-cli-deploy-lambda
v0.0.1
Published
An ember-cli-deploy plugin for serving index.html from an AWS Lambda function
Downloads
1
Maintainers
Readme
ember-cli-deploy-lambda
This plugin builds out and deploys an AWS Lambda function for serving index.html
, presumably as an API Gateway integration. The Lambda function also acts as a middleware layer, e.g. for handling redirects, 404s, etc.
Usage
- This plugin expects an instance of route-recognizer to be exported by
router.js
within a top-levelserver
directory in the application. - In the
didBuild
hook of theember-cli-deploy
pipeline, the AWS Lambda function package is created. Its directory is specified by thelambda-dist-dir
configuration option, defaulting tolambda-dist-dir
. - Any code in
server
This package will copy the application'sserver
directory for handling any middleware aspects of serving, as well as the builtindex.html
to serve.
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.