Revert "deploying in process.env.NODE_ENV='development' until we can fix #840"

This reverts commit 6aba44c43d.
This commit is contained in:
Tyler Renelle 2013-05-10 10:29:33 +01:00
parent 8aee3c7446
commit 2a78fb5ea9
3 changed files with 3 additions and 3 deletions

View file

@ -200,7 +200,7 @@ module.exports.resetDom = (model) ->
# syncronous requires up top are what benefit the most from this file.
googleAnalytics = (model) ->
#if model.flags.nodeEnv is 'production'
if model.flags.nodeEnv is 'production'
window._gaq = [["_setAccount", "UA-33510635-1"], ["_setDomainName", "habitrpg.com"], ["_trackPageview"]]
$.getScript ((if "https:" is document.location.protocol then "https://ssl" else "http://www")) + ".google-analytics.com/ga.js"

View file

@ -125,7 +125,7 @@ ready (model) ->
require('./profile').app(exports, model)
require('./pets').app(exports, model)
require('../server/private').app(exports, model)
#require('./debug').app(exports, model) if model.flags.nodeEnv != 'production'
require('./debug').app(exports, model) if model.flags.nodeEnv != 'production'
require('./browser').app(exports, model, app)
require('./unlock').app(exports, model)
require('./filters').app(exports, model)

View file

@ -40,7 +40,7 @@
</div>
<div class='span3'>
{{#if equal(_nodeEnv, 'test')}}
{{#if equal(_nodeEnv, 'development')}}
<h4>Cheat</h4>
<ul class='unstyled'>
<li><button class='btn' x-bind="click:emulateNextDay">Emulate Next Day</button></li>