Skip to content

Commit

Permalink
new node stuf
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed May 25, 2015
1 parent b9debc5 commit ade1b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

CoffeeScript = require("coffee-script")
File = require("fs")
Path = require("path")


# Default mode is development
Expand All @@ -20,7 +19,8 @@ config = load("#{__dirname}/default.config")
console.log(config)
env_fn = "#{__dirname}/#{process.env.NODE_ENV}.config"
console.log(env_fn)
if Path.existsSync(env_fn)
console.log(File.existsSync)
if File.existsSync(env_fn)
env_config = load(env_fn)
console.log(env_config)
for name, value of env_config
Expand Down

0 comments on commit ade1b02

Please sign in to comment.