Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compression and pebble.js mongo fixes #492

Merged
merged 10 commits into from
Mar 17, 2015
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ selectNodeVersion () {
# ----------

echo Handling node.js deployment.
echo "\"$SCM_COMMIT_ID\"" > $DEPLOYMENT_SOURCE/scm-commit-id.json

# 1. KuduSync
if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
Expand Down
8 changes: 3 additions & 5 deletions env.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ function config ( ) {
var software = require('./package.json');
var git = require('git-rev');

if (readENV('SCM_GIT_EMAIL') == 'windowsazure' && readENV('ScmType') == 'GitHub') {
git.cwd('/home/site/repository');
}
if (readENV('SCM_COMMIT_ID')) {
env.head = readENV('SCM_COMMIT_ID');
if (readENV('APPSETTING_ScmType') == readENV('ScmType') && readENV('ScmType') == 'GitHub') {
env.head = require('./scm-commit-id.json');
console.log("SCM COMMIT ID", env.head);
} else {
git.short(function record_git_head (head) {
console.log("GIT HEAD", head);
Expand Down
2 changes: 1 addition & 1 deletion lib/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var dir2Char = {
//these only effect the socket.io.js file that is sent to the client, but better than nothing
'browser client minification': true,
'browser client etag': true,
'browser client gzip': true
'browser client gzip': false
});
}
// get data from database and setup to update every minute
Expand Down