1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00

Allow customizing the port used by grunt connect

Use next available port if requested one is taken

closes #2441
--skip-ci
This commit is contained in:
Pat O'Neill 2015-08-06 10:55:29 -04:00 committed by heff
parent 6905d0b005
commit 8c6c7d6e27

View File

@ -67,8 +67,9 @@ module.exports = function(grunt) {
connect: {
dev: {
options: {
port: 9999,
livereload: true
port: Number(process.env.VJS_CONNECT_PORT) || 9999,
livereload: true,
useAvailablePort: true
}
}
},