Skip to content

Commit 05fd30c

Browse files
committed
test(gen): use different port for test server
So dev & test server can be used at the same time
1 parent 1beea16 commit 05fd30c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: templates/app/karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function(config) {
6666
exclude: [],
6767

6868
// web server port
69-
port: <%= devPort %>,
69+
port: <%= Number(devPort) + 1 %>,
7070

7171
// level of logging
7272
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG

Diff for: templates/app/protractor.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var config = {
1111

1212
// A base URL for your application under test. Calls to protractor.get()
1313
// with relative paths will be prepended with this.
14-
baseUrl: 'http://localhost:' + (process.env.PORT || '<%= devPort %>'),
14+
baseUrl: 'http://localhost:' + (process.env.PORT || '<%= Number(devPort) + 1 %>'),
1515

1616
// Credientials for Saucelabs
1717
sauceUser: process.env.SAUCE_USERNAME,

Diff for: templates/app/server/config/environment/test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ module.exports = {
1717
timestamps: false
1818
}
1919
}
20-
}
20+
},
21+
port: '<%= Number(devPort) + 1 %>',
2122
};

0 commit comments

Comments
 (0)