# ember-s3-redis-deploy

> A very specific script to build an Ember app, push it to S3 and add the "index.html" to redis

Latest version **1.0.1** (published 2014-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-s3-redis-deploy
pnpm add ember-s3-redis-deploy
yarn add ember-s3-redis-deploy
bun add ember-s3-redis-deploy
```

Provides the command `ember-s3-redis-deploy`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2014-10-29 |
| First published | 2014-10-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Moudy |
| Maintainers | moudy |

## Links

- npm: https://www.npmjs.com/package/ember-s3-redis-deploy
- Repository: https://github.com/moudy/ember-s3-redis-deploy
- Issues: https://github.com/moudy/ember-s3-redis-deploy/issues
- npm.io page: https://npm.io/package/ember-s3-redis-deploy

## Dependencies (5)

- [rsvp](https://npm.io/package/rsvp.md) ^3.0.14
- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [redis](https://npm.io/package/redis.md) ^0.12.1
- [dotenv](https://npm.io/package/dotenv.md) ^0.4.0
- [commander](https://npm.io/package/commander.md) ^2.3.0

## Recent versions

- 1.0.1 (latest) — 2014-10-29
- 1.0.0 — 2014-10-06

## README

# ember-s3-redis-deploy

A very specific command line script to build an Ember app, push it to S3, and update redis with the "index.html" contents.
[dotenv](https://github.com/motdotla/dotenv) loads and environment file based on the `--environment` option. It should contain REDIS_URL, S3_BUCKET_NAME and AWS credentials required by [aws s3 sync](http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html).

Keep an eye on https://github.com/stefanpenner/ember-cli/issues/1256 to see if something better comes along.

### Installing
```sh
npm install --save-dev ember-s3-redis-deploy
```

### Deploying

```sh
# adds the key 'photos-cms-client-app/canary/index.html'
# with the contents on 'app/index.html' to redis
ember-s3-redis-deploy --environment production --release stable
```

### Serving

In the server app use the `buildReleaseKey` convenience function to construct the key name saved in redis.

```js
var buildReleaseKey = require('ember-s3-redis-deploy').buildReleaseKey;

/*
 * Omitted server code
 */

app.get('/', function (request, response) {
  // opionally allow for loading different releases
  // i.e. example.com?release=beta
  var release = request.query.release || 'stable';

  var key = buildReleaseKey({
    appName: 'my-ember-app-name',
    release: release
  });

  var html = redisClient.get(key, function (html) {
    response.send(html);
  });
});
```

---
_Source: https://npm.io/package/ember-s3-redis-deploy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
