Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (21 sloc) 0.53 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
env = process.env.NODE_ENV || 'development'
appName = 'Este'
port = process.env.PORT || 8000

exports = module.exports =
  appName: appName
  server:
    port: port
    url: if process.env.SUBDOMAIN
      "http://#{process.env.SUBDOMAIN}.jit.su/"
    else
      "http://localhost:#{port}/"
  env:
    development: false
    staging: false
    production: false
  log:
    __dirname + "/log/app_#{env}.log"
  db:
    url: "mongodb://localhost:27017/#{appName.toLowerCase()}_#{env}"

exports.env[env] = true
exports.currentEnv = env
Something went wrong with that request. Please try again.