leca c2b484b88d | ||
---|---|---|
html | ||
src | ||
views | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
docker-compose.yml | ||
package-lock.json | ||
package.json |
README.md
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 pull
npm 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 pull
docker-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