ember-cli-deploy-couchdb-rewrites

0.0.3 • Public • Published

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://...@remotehost.com:5984/foof';
  }

  return ENV;
};

Package Sidebar

Install

npm i ember-cli-deploy-couchdb-rewrites

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ampatspell