f49e9415b75e64b667666d443a5a4a17a49c3021
pixelbattle
Self-hosted pixel battle written in NodeJS
Deploying
Traditional
To deploy this pixelbattle, you need to:
- Clone this repo:
git clone https://git.foxarmy.org/leca/pixelbattle - Install node deps:
npm install - Run:
npm run prod
Docker:
- Clone this repo:
git clone https://git.foxarmy.org/leca/pixelbattle - Build docker image:
docker-compose up --build - After building, you can just run it:
docker-compose up -d - To update:
git clone https://git.foxarmy.org/leca/pixelbattledocker-compose up --build
That's it!
Tips & tricks
-
Server settings are located in
./settings.json, you need to change serverAddress in order to deploy -
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 KILL WITH SIGTERM WILL NOT SAVE THE BOARD!
Description
Languages
JavaScript
95.1%
Pug
4.1%
Dockerfile
0.8%