Permalink
Browse files

updating to clearer name + logic for Meteor hot code push disable

  • Loading branch information...
Steven Dale
Steven Dale committed Aug 24, 2015
1 parent 10a558f commit 8950c492aa17667ed9c125e0d4007462526fae98
Showing with 14 additions and 11 deletions.
  1. +10 −9 .env.example
  2. +4 −2 meteor-app/packages/parallels-client/lib/meteor-reload-config.js
@@ -22,15 +22,15 @@ PARALLELS_FILE_UPLOADER="fileSystemUploader"
# determines if sound in the UI is played.
PARALLELS_IS_AUDIO_ENABLED=true
# Defaults to 1 / true.
PARALLELS_IS_AUDIO_ENABLED=1
# should Meteor's default watcher automatically trigger Meteor to rebuild the files
# default is true. On slower dev machines, this might make sense to disable
# as every file change retriggers a build, which makes refactoring slow
# note, even if this is set to false, node process will still compile+build templates
# this cannot be prevented, but at least localhost will not automatically refresh
# which should save resources if needed
PARALLELS_IS_METEOR_HOT_CODE_PUSH_ENABLED=false
# Meteor listens to file changes + automatically triggers Meteor's build on any file save.
# Default is 1 (true). On slower dev machines, this might make sense to disable
# during heavy refactoring, as each rebuild also triggers a browser refresh
# Note, even if this is set to false, node process will still compile+build templates
# but at least localhost will not automatically refresh, saving resources.
PARALLELS_IS_METEOR_HOT_CODE_PUSH_DISABLED=1
# used to identify a canvas by ID as readonly.
# This can be a comma separated list of multiple canvas IDs or just a string with one canvas Id.
@@ -39,7 +39,8 @@ PARALLELS_READONLY_CANVASES="demo,another-canvas"
# whether to display Meteor's build time performance numbers in terminal, when starting Meteor server
# This is useful for debugging why build times take longer, if there is a package
# or step in the build process that is taking a disproportionate time to build
# Defaults is 0, for disabled
# Default is 0, for disabled
# To enable, switch to 1 (true)
METEOR_PROFILE=0
@@ -1,7 +1,9 @@
var enableHotCodePush = Parallels.utils.stringToBoolean(Session.get('PARALLELS_IS_METEOR_HOT_CODE_PUSH_ENABLED') || true);
if (!enableHotCodePush) {
var isHotCodePushDisabled = Session.get('PARALLELS_IS_METEOR_HOT_CODE_PUSH_DISABLED') || 0;
if (isHotCodePushDisabled) {
Meteor._reload.onMigrate(function() {
return [false];
});
}

0 comments on commit 8950c49

Please sign in to comment.