move to new port

This commit is contained in:
2023-06-04 16:14:28 +02:00
parent f199fbded3
commit b28d2dd68e
4 changed files with 5 additions and 5 deletions

View File

@@ -64,4 +64,4 @@ app.post( '/api/startUpscaling', ( request, response ) => {
}
} );
Server.listen( 8081 );
Server.listen( 49369 );

View File

@@ -8,7 +8,7 @@ export const state = reactive({
});
// "undefined" means the URL will be computed from the `window.location` object
const URL = process.env.NODE_ENV === "production" ? undefined : "http://localhost:8081";
const URL = process.env.NODE_ENV === "production" ? undefined : "http://localhost:49369";
export const socket = io(URL);

View File

@@ -79,7 +79,7 @@ export default {
},
methods: {
runCommand ( command ) {
fetch( 'http://127.0.0.1:8081/api/get' + command ).then( res => {
fetch( 'http://127.0.0.1:49369/api/get' + command ).then( res => {
res.json().then( data => {
this.upscaleSettings[ command ] = data[ 'data' ];
} ).catch( error => {
@@ -96,7 +96,7 @@ export default {
'charset': 'utf-8'
},
}
fetch( 'http://127.0.0.1:8081/api/startUpscaling', fetchOptions ).then( res => {
fetch( 'http://127.0.0.1:49369/api/startUpscaling', fetchOptions ).then( res => {
res.json().then( data => {
console.log( this.upscaleSettings );
if ( data.data == 'upscaling' ) {

View File

@@ -16,7 +16,7 @@ export default {
},
methods: {
run() {
fetch( 'http://127.0.0.1:8081/api/getEngines' ).then( res => {
fetch( 'http://127.0.0.1:49369/api/getEngines' ).then( res => {
console.log( res );
res.json().then( data => {
this.engines = data.body;