Readme update
This commit is contained in:
parent
f5380927fd
commit
89e2f52063
9 changed files with 60 additions and 148 deletions
|
|
@ -1,2 +1,3 @@
|
|||
secret = oIMzR4YvM9x9NoPrQfk4
|
||||
secret = HVuwh1dmaFhg4q1fef7xI4D6UeV7ImGK6NTp7i9eH6qiyJ9kxsvqPu29JXnhNGQY
|
||||
enableJusticeGuard = 1
|
||||
PORT = 3001
|
||||
|
|
|
|||
5
server/README.md
Normal file
5
server/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Start Game Server
|
||||
|
||||
For more info look at main README.md
|
||||
|
||||
I used [phaser3-typescript-parcel-template](https://github.com/ourcade/phaser3-typescript-parcel-template) as startup project (but typescript config was messed up)
|
||||
|
|
@ -4,7 +4,8 @@
|
|||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "nodemon --ignore ./storage/ --exec babel-node server.js"
|
||||
"dedv": "nodemon --ignore ./storage/ --exec babel-node server.js",
|
||||
"start": "babel-node server.js"
|
||||
},
|
||||
"type": "module",
|
||||
"keywords": [],
|
||||
|
|
|
|||
|
|
@ -110,4 +110,8 @@ app.use(function (err, req, res, next) {
|
|||
});
|
||||
|
||||
await db.read()
|
||||
app.listen(3000)
|
||||
|
||||
const port = process.env.PORT || 3000
|
||||
app.listen(port, () => {
|
||||
console.log(`Server listening on port ${port}!`);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue