fix(core): npm start prod

This commit is contained in:
OldHawk
2017-06-22 16:21:53 +08:00
parent db303500e7
commit 62c339aeef
3 changed files with 7 additions and 6 deletions

View File

@@ -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: ''

View File

@@ -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

View File

@@ -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();
}
};