Skip to content

ampatspell/ember-cli-deploy-couchdb-rewrites

Repository files navigation

ember-cli-deploy-couchdb-rewrites

Unshifts defined rewrites in rewrites.json created by ember-cli-deploy-couchdb.

// deploy.js
/* jshint node: true */

module.exports = function(deployTarget) {
  var ENV = {
    couchdb: {
      db: 'http://...@localhost:5984/foof'
    },
    rewrites: {
      top: [
        { from: 'api', to: '../..' },
        { from: 'api/*', to: '../../*' }
      ]
    },
    build: {
      environment: 'production'
    }
  };

  if (deployTarget === 'development') {
    ENV.build.environment = 'development';
  }

  if (deployTarget === 'staging') {
  }

  if (deployTarget === 'production') {
    ENV.couchdb.db = 'http://[email protected]:5984/foof';
  }

  return ENV;
};

About

unshift custom rewrites to ember-cli-deploy-couchdb

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published