• This project
    • Loading...
  • Sign in

OPENTECH / yoho-node-ci · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 2
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yoho-node-ci
  • config
  • config.js
  • hotfix file path add the env
    d17c6f4e
    by 姜枫
    2016-08-23 09:38:38 +0800  
    Browse Files
config.js 370 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
'use strict';

import path from 'path';

const env = process.env.NODE_ENV || 'development';

const defaults = {
    port: 9000,
    buildDir: path.normalize(__dirname + '/../packages/'),
    dbDir: path.normalize(__dirname + '/../db')
};

const specific = {
    development: {},
    test: {},
    production: {}
};

export default Object.assign(defaults, specific[env]);