我有这个twilio: # Twilio gateway configuration
accountId: MYID
accountToken: MYTOKEN
numbers: # Numbers allocated in Twilio
-
+MYNO
messagingServicesId:
localDomain: http://localhost/
# Domain Twilio can connect back to for calls. Should be domain of your service.
push:
queueSize: 10000
# Size of push pending queue
turn: # TURN server configuration
secret: # TURN server secret
uris:
- stun: http://localhost:80
- stun: http://localhost:443
- turn: http://localhost:443?transport=udp
- turn: http://localturn4signal:80?transport=udp
cache: # Redis server configuration for cache cluster
url: redis://12.12.12.1:6379/1
replicaUrls: redis://12.12.12.1:6379/2
directory: # Redis server configuration for directory cluster
url: redis://12.12.12.1:6379/3
replicaUrls: redis://12.12.12.1:6379/4
messageCache: # Redis server configuration for message store cache
url: redis://12.12.12.1:6379/5
replicaUrls: redis://12.12.12.1:6379/6
messageStore: # Postgresql database configuration for message store
driverClass: org.postgresql.Driver
user: postgres
password: ""
url: "jdbc:postgresql://localhost:5432/messagedb"
attachments: # AWS S3 configuration
accessKey: MyKey
accessSecret: MySecret
bucket: MuBucket1
profiles: # AWS S3 configuration
accessKey: MYKEY2
accessSecret: MySectret2
bucket: MyBucket2
#region:
database: # Postgresql database configuration
driverClass: org.postgresql.Driver
user: "postgres"
password: ""
url: "jdbc:postgresql://localhost:5432/accountsdb"
apn: # Apple Push Notifications configuration
bundleId:
pushCertificate:
pushKey:
gcm: # GCM Configuration
senderId: MYID
apiKey: MYKEY
一切正常的工作(页面上加载了更改),直到我对某些gulpfile.babel.js
文件进行了另一个更改,然后.pug
停留在[BrowserSync]
上有其他变化
Reloading Browsers...
然后我必须运行import gulp from 'gulp';
import babel from 'gulp-babel';
import pug from 'gulp-pug';
import browserSync from 'browser-sync';
import sass from 'gulp-sass';
import postcss from 'gulp-postcss';
import cssnano from 'cssnano';
const server = browserSync.create();
const postCSSPlugins = [
cssnano({
core: false,
autoprefixer: {
add: true
}
})
];
gulp.task('es6', () =>
gulp.src('./dev/js/*.js')
.pipe(babel())
.pipe(gulp.dest('./public/js'))
);
gulp.task('sass', () =>
gulp.src('./dev/scss/styles.scss')
.pipe(sass())
.pipe(postcss(postCSSPlugins))
.pipe(gulp.dest('./public/css'))
.pipe(server.stream({match: '**/*.css'}))
);
gulp.task('pug', () => {
gulp.src('./dev/pug/pages/*.pug')
.pipe(pug())
.pipe(gulp.dest('./public/'))
});
gulp.task('default', () => {
server.init({
server: {
baseDir: './public'
}
});
gulp.watch('./dev/js/*.js', gulp.series('es6',[server.reload]));
gulp.watch('./dev/pug/**/*.pug', gulp.series('pug', [server.reload]));
gulp.watch('./dev/scss/**/*.scss', gulp.series('sass'));
});
并进行修改以查看页面中的更改,然后在下一次更改停止工作
有人知道为什么吗?