update server port

This commit is contained in:
Alexander Popov 2023-08-06 03:29:14 +03:00
parent e2ca5f95f5
commit baa6937bef
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import { routes } from './routes.js';
let DEBUG = true;
let DEBUG = false;
window.DEBUG = DEBUG;
let SERVER_HOST;
@ -72,7 +72,7 @@ function get_from_api(callback, api_method = '', params = {}) {
if (api_method == '') {
console.log('wrong method');
} else {
let url = `http://${SERVER_HOST}:3000/api/v1.0/${api_method}`;
let url = `http://${SERVER_HOST}:50009/api/v1.0/${api_method}`;
let opts = {
method: 'get',
headers: {

View File

@ -97,7 +97,7 @@
import { update_rev2 } from './js/rev2.js';
function autorun() {
if (true) {
if (!window.DEBUG) {
get_from_api((data) => {
update_rev2(data);
}, 'rev2_monsters');

View File

@ -7,6 +7,6 @@ get "/" do
render "#{__DIR__}/layouts/index.ecr"
end
Kemal.config.env = "development"
Kemal.config.port = 3000
Kemal.config.env = "production"
Kemal.config.port = 50009
Kemal.run