leca 0986f3ed7b | ||
---|---|---|
html | ||
src | ||
views | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
docker-compose.yml | ||
package-lock.json | ||
package.json | ||
settings.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
./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!