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 - To update:
git pullnpm install
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 pulldocker-compose up --build
That's it!
Tips & tricks
-
Server settings are located in
./pb-data/settings.json, you need to change serverAddress after frist launch in order to deploy -
When catches SIGUSR1, server will save a board with name read from settings file. SIGINT (CTRL + C) and SIGTERM does the same but exit server when board is saved
Description
Languages
JavaScript
95.1%
Pug
4.1%
Dockerfile
0.8%