diff --git a/config/env/production.js b/config/env/production.js index c1124b08..2c27c010 100644 --- a/config/env/production.js +++ b/config/env/production.js @@ -4,16 +4,16 @@ var fs = require('fs'); module.exports = { secure: { - ssl: true, + ssl: false, privateKey: './config/sslcerts/key.pem', certificate: './config/sslcerts/cert.pem', caBundle: './config/sslcerts/cabundle.crt' }, - port: process.env.PORT || 8443, + port: process.env.PORT || 3000, // Binding to 127.0.0.1 is safer in production. host: process.env.HOST || '0.0.0.0', db: { - uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean', + uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev-v2', options: { user: '', pass: '' diff --git a/gulpfile.js b/gulpfile.js index 07c9edf3..c39f0417 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -426,7 +426,8 @@ gulp.task('lint', function (done) { // Lint project files and minify them into two production files. gulp.task('build', function (done) { - runSequence('env:dev', 'wiredep:prod', 'lint', ['uglify', 'cssmin'], done); + //runSequence('env:dev', 'wiredep:prod', 'lint', ['uglify', 'cssmin'], done); + runSequence('env:dev', 'lint', ['uglify', 'cssmin'], done); }); // Run the project tests diff --git a/modules/core/client/controllers/home.client.controller.js b/modules/core/client/controllers/home.client.controller.js index 746a2add..007bc07b 100644 --- a/modules/core/client/controllers/home.client.controller.js +++ b/modules/core/client/controllers/home.client.controller.js @@ -69,7 +69,7 @@ vm.getTVTopInfo(); var sw = localStorageService.get('showed_warning'); - if(vm.appConfig.show_warning_popup && !sw) { + if (vm.appConfig.show_warning_popup && !sw) { $timeout(function () { $('#warning_popup').popup('show'); //$('.warning_popup_open').trigger('click'); @@ -78,7 +78,7 @@ localStorageService.set('showed_warning', true); } - if(sw){ + if (sw) { $('.popup_wrapper').remove(); } };