Giter Site home page Giter Site logo

Comments (5)

achambers avatar achambers commented on June 25, 2024 4

Ok, just identified the issue. So sorry about this guys. Will work on a fix shortly.

from ember-cli-deploy-redis.

achambers avatar achambers commented on June 25, 2024 2

Released as v0.4.2

from ember-cli-deploy-redis.

achambers avatar achambers commented on June 25, 2024

Hi @andressrg Can you please post your config/deploy.js ?

from ember-cli-deploy-redis.

blimmer avatar blimmer commented on June 25, 2024

This happens to me too, here's my config:

/* eslint-env node */
const _merge = require('lodash/object/merge');

module.exports = function(deployTarget) {
  const ENV = {
    build: {},
    redis: { allowOverwrite: true },
    s3:    {
      accessKeyId: 'redacted',
      secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,
      bucket: 'redacted',
      region: 'us-east-1',
    },
    hipchat: {
      authToken:       process.env.HIPCHAT_AUTH_TOKEN,
      roomNotifyToken: process.env.HIPCHAT_ROOM_NOTIFY_TOKEN,
      room:            'redacted',
    },
    'revision-data': {
      type: 'file-hash'
    },
  };

  if (deployTarget === 'development') {
    _merge(ENV, {
      build: {
        environment: 'development',
      },
      redis: {
        host: 'localhost',
      },
      s3: {
        prefix: 'development',
      }
    });
  }

  if (deployTarget === 'staging') {
    _merge(ENV, {
      build: {
        environment: 'staging',
      },
      redis: {
        host:   process.env.STAGING_REDIS_HOST || 'redacted',
      },
      s3: {
        prefix: 'staging',
      },
    });
  }

  if (deployTarget === 'production') {
    _merge(ENV, {
      build: {
        environment: 'production',
      },
      redis: {
        host: process.env.PRODUCTION_REDIS_HOST || 'redacted',
      },
      s3: {
        prefix: 'production',
      },
      'revision-data': {
        type: 'git-commit',
      },
    });
  }

  // Note: if you need to build some configuration asynchronously, you can return
  // a promise that resolves with the ENV object instead of returning the
  // ENV object synchronously.
  return ENV;
};

from ember-cli-deploy-redis.

achambers avatar achambers commented on June 25, 2024

/cc @blimmer @andressrg ^^^

from ember-cli-deploy-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.