Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-deploy-fastboot-lambda

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-deploy-fastboot-lambda

An ember-cli-deploy plugin for building FastBoot and deploying to AWS Lambda.

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ember-cli-deploy-fastboot-lambda

An ember-cli-deploy plugin for building FastBoot and deploying to AWS Lambda.

Usage

  • An AWS Lambda function must first be created. It must use the NodeJS runtime and have a handler of index.handler.
  • Run ember deploy as usual. ember-cli-deploy-fastboot-lambda will build out a fastboot-dist directory.
  • Run ember deploy:activate with the appropriate revision. Only then will the Lambda function be uploaded. This is to prevent activated browser deploys and Lambda deploys from going out of sync.

Config

The following config is required. environment defaults to production.

ENV['fastboot-lambda'] = {
  environment: '<environment>',
  "lambda-function": '<lambda-function>'
}

Notes

  • Due to an OS-native dependency (contextify) in ember-fastboot-server, the Lambda function package must be npm installed on an Amazon Linux instance. A pre-built version is provided with assets/lambda-package/node_modules.zip.
  • To facilitate upgrading the Lambda package's dependenices, run npm run update-lambda [user@]hostname, which will npm install the package.json on your specified server and rewrite it to assets/lambda-package/node_modules.zip.

TODO

  • Utilize ember-cli-fastboot-build. Much of this code is duplicated here, however ember-cli-deploy-manifest creates two entries in manifest.txt for all assets (presumably from assets in both deploy-dist and fastboot-dist directories, though this is unverified.) This causes an upload error with ember-cli-deploy-s3.

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

FAQs

Package last updated on 05 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc