Unify default port to 8080
This commit is contained in:
parent
1f41ff2742
commit
f6201469ba
4 changed files with 23 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
||||||
server.port=8081
|
server.port=8080
|
||||||
|
|
||||||
spring.datasource.initialization-mode=always
|
spring.datasource.initialization-mode=always
|
||||||
spring.datasource.url=jdbc:h2:file:~/H2_flightlog;DB_CLOSE_ON_EXIT=FALSE;IFEXISTS=FALSE;DB_CLOSE_DELAY=-1;
|
spring.datasource.url=jdbc:h2:file:~/H2_flightlog;DB_CLOSE_ON_EXIT=FALSE;IFEXISTS=FALSE;DB_CLOSE_DELAY=-1;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# application url for selenium
|
# application url for selenium
|
||||||
server.port=8081
|
server.port=8080
|
||||||
application.url=http://localhost:8081
|
application.url=http://localhost:8080
|
||||||
|
|
||||||
spring.datasource.initialization-mode=always
|
spring.datasource.initialization-mode=always
|
||||||
spring.datasource.url=jdbc:h2:file:~/H2_flightlog;DB_CLOSE_ON_EXIT=FALSE;IFEXISTS=FALSE;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;
|
spring.datasource.url=jdbc:h2:file:~/H2_flightlog;DB_CLOSE_ON_EXIT=FALSE;IFEXISTS=FALSE;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import environment from './environment';
|
import environment from './environment';
|
||||||
import {PLATFORM} from 'aurelia-pal';
|
import { PLATFORM } from 'aurelia-pal';
|
||||||
import * as Bluebird from 'bluebird';
|
import * as Bluebird from 'bluebird';
|
||||||
import {HttpClient} from 'aurelia-fetch-client';
|
import { HttpClient } from 'aurelia-fetch-client';
|
||||||
|
|
||||||
|
|
||||||
// remove out if you don't want a Promise polyfill (remove also from webpack.config.js)
|
// remove out if you don't want a Promise polyfill (remove also from webpack.config.js)
|
||||||
|
@ -17,24 +17,24 @@ export function configure(aurelia) {
|
||||||
let http = new HttpClient();
|
let http = new HttpClient();
|
||||||
http.configure(config => {
|
http.configure(config => {
|
||||||
config
|
config
|
||||||
.useStandardConfiguration()
|
.useStandardConfiguration()
|
||||||
.withBaseUrl('http://localhost:8081/')
|
.withBaseUrl('http://localhost:8080/')
|
||||||
.withDefaults({
|
.withDefaults({
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json'
|
'Accept': 'application/json'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.withInterceptor({
|
.withInterceptor({
|
||||||
request(request) {
|
request(request) {
|
||||||
console.log(`Requesting ${request.method} ${request.url}`);
|
console.log(`Requesting ${request.method} ${request.url}`);
|
||||||
return request;
|
return request;
|
||||||
},
|
},
|
||||||
response(response) {
|
response(response) {
|
||||||
console.log(`Received ${response.status} ${response.url}`);
|
console.log(`Received ${response.status} ${response.url}`);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
container.registerInstance(HttpClient, http);
|
container.registerInstance(HttpClient, http);
|
||||||
|
|
||||||
|
|
0
mvnw
vendored
Normal file → Executable file
0
mvnw
vendored
Normal file → Executable file
Loading…
Reference in a new issue