set NODE_TLS_REJECT_UNAUTHORIZED to 0 for testing

allows us to talk to staging sixpack
This commit is contained in:
Henry Oswald 2015-11-12 12:38:35 +00:00
parent 8a6c3b5838
commit 49e6f4db87
2 changed files with 10 additions and 2 deletions

View file

@ -12,6 +12,8 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-sed' grunt.loadNpmTasks 'grunt-sed'
grunt.loadNpmTasks 'grunt-git-rev-parse' grunt.loadNpmTasks 'grunt-git-rev-parse'
grunt.loadNpmTasks 'grunt-file-append' grunt.loadNpmTasks 'grunt-file-append'
grunt.loadNpmTasks 'grunt-file-append'
grunt.loadNpmTasks 'grunt-env'
config = config =
execute: execute:
@ -74,6 +76,11 @@ module.exports = (grunt) ->
files: files:
"public/stylesheets/style.css": "public/stylesheets/style.less" "public/stylesheets/style.css": "public/stylesheets/style.less"
env:
run:
add:
NODE_TLS_REJECT_UNAUTHORIZED:0
requirejs: requirejs:
compile: compile:
options: options:
@ -294,7 +301,7 @@ module.exports = (grunt) ->
grunt.registerTask 'test:modules:unit', 'Run the unit tests for the modules', ['compile:modules:server', 'compile:modules:unit_tests'].concat(moduleUnitTestTasks) grunt.registerTask 'test:modules:unit', 'Run the unit tests for the modules', ['compile:modules:server', 'compile:modules:unit_tests'].concat(moduleUnitTestTasks)
grunt.registerTask 'run', "Compile and run the web-sharelatex server", ['compile', 'bunyan', 'execute'] grunt.registerTask 'run', "Compile and run the web-sharelatex server", ['compile', 'bunyan', 'env:run', 'execute']
grunt.registerTask 'default', 'run' grunt.registerTask 'default', 'run'
grunt.registerTask 'version', "Write the version number into sentry.jade", ['git-rev-parse', 'sed'] grunt.registerTask 'version', "Write the version number into sentry.jade", ['git-rev-parse', 'sed']

View file

@ -73,6 +73,7 @@
"grunt-sed": "^0.1.1", "grunt-sed": "^0.1.1",
"sandboxed-module": "0.2.0", "sandboxed-module": "0.2.0",
"sinon": "", "sinon": "",
"timekeeper": "" "timekeeper": "",
"grunt-env":"0.4.4"
} }
} }