• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • config
  • devtools.js
  • dev
    af4de9e7
    by 陈峰
    2017-08-14 16:46:05 +0800  
    Browse Directory »
devtools.js 240 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
const fs = require('fs');
let devHost = '127.0.0.1';

try {
    let buf = fs.readFileSync('.devhost');

    devHost = JSON.parse(buf.toString()).host;
} catch (e) {} //eslint-disable-line


module.exports = {
    devHost,
    port: 5001
};