move to new port
This commit is contained in:
@@ -64,4 +64,4 @@ app.post( '/api/startUpscaling', ( request, response ) => {
|
||||
}
|
||||
} );
|
||||
|
||||
Server.listen( 8081 );
|
||||
Server.listen( 49369 );
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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' ) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user