update server port
This commit is contained in:
parent
e2ca5f95f5
commit
baa6937bef
@ -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: {
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user