24 lines
539 B
Markdown
24 lines
539 B
Markdown
# pixelbattle
|
|
|
|
Self-hosted pixel battle written in NodeJS
|
|
|
|
# Deploying
|
|
|
|
To deploy this pixelbattle, you need to:
|
|
|
|
1. Clone this repo:
|
|
`git clone https://git.foxarmy.org/leca/pixelbattle`
|
|
2. Install node deps:
|
|
`npm update`
|
|
3. Run:
|
|
`npm run prod`
|
|
|
|
That's it!
|
|
|
|
# Tips & tricks
|
|
|
|
1. Server settings are located in `./settings.json`, you need to change serverAddress in order to deploy
|
|
|
|
2. When catches SIGUSR1, server will save a board with name read from settings file. SIGINT (CTRL + C) does the same but exit server when board is saved
|
|
|