Un-rename class files and change port to 8800

master
Sijmen Schoon 5 years ago
parent bbc9984948
commit 52da65967b
No known key found for this signature in database
GPG Key ID: DAF7821E067D9C48
  1. 2
      backend/src/Lobby.js
  2. 3
      backend/src/State.js
  3. 0
      backend/src/User.js
  4. 2
      backend/src/app.js
  5. 4
      backend/src/index.js
  6. 4
      backend/src/service.js
  7. 2
      docker-compose.yml

@ -1,4 +1,4 @@
const User = require("./user.js"); const User = require("./User.js");
const timeline = require("./timeline.js"); const timeline = require("./timeline.js");
module.exports = class Lobby { module.exports = class Lobby {

@ -1,5 +1,4 @@
const Lobby = require("./lobby.js"); const Lobby = require("./Lobby.js");
const User = require("./user.js");
const {getRandomInt} = require("./util.js"); const {getRandomInt} = require("./util.js");
class State { class State {

@ -1,6 +1,6 @@
const express = require("express"); const express = require("express");
const socketIO = require("socket.io"); const socketIO = require("socket.io");
const state = require("./state.js"); const state = require("./State.js");
const path = require("path"); const path = require("path");
const HOST = '0.0.0.0'; const HOST = '0.0.0.0';

@ -1,5 +1,5 @@
const service = require("./service.js"); const service = require("./service.js");
const state = require("./state.js"); const state = require("./State.js");
const {io} = require('./app.js'); const {io} = require('./app.js');
@ -77,4 +77,4 @@ io.on('connection', socket => {
lobby.seek(io, time); lobby.seek(io, time);
} }
}); });
}); });

@ -1,5 +1,5 @@
const User = require("./user.js"); const User = require("./User.js");
const state = require("./state.js"); const state = require("./State.js");
/** /**
* *

@ -10,4 +10,4 @@ services:
environment: environment:
NODE_ENV: production NODE_ENV: production
ports: ports:
- 8801:80 - 8800:80

Loading…
Cancel
Save