Self-hosted pixel battle written in NodeJS
Go to file
leca c2b484b88d try catch 2024-04-28 17:56:56 +03:00
html wss behind nginx 2024-04-11 01:33:51 +03:00
src try catch 2024-04-28 17:56:56 +03:00
views fixed timer and removed connect feature 2024-04-08 00:56:50 +03:00
.dockerignore added dockerignore 2023-08-01 15:41:51 +03:00
.gitignore v dogonku 2024-04-06 05:54:15 +03:00
Dockerfile remade old shit 2024-04-06 05:53:37 +03:00
LICENSE Initial commit 2023-07-30 11:43:19 +03:00
README.md remade old shit 2024-04-06 05:53:37 +03:00
docker-compose.yml changed color picking, removed server pings 2024-04-06 15:26:38 +03:00
package-lock.json rewrite with wss 2023-08-02 19:47:27 +03:00
package.json rewrite with wss 2023-08-02 19:47:27 +03:00

README.md

pixelbattle

Self-hosted pixel battle written in NodeJS

Deploying

Traditional:

To deploy this pixelbattle, you need to:

  1. Clone this repo: git clone https://git.foxarmy.org/leca/pixelbattle
  2. Install node deps: npm install
  3. Run: npm run prod
  4. To update: git pull npm install

Docker:

  1. Clone this repo: git clone https://git.foxarmy.org/leca/pixelbattle
  2. Build docker image: docker-compose up --build
  3. After building, you can just run it: docker-compose up -d
  4. To update: git pull docker-compose up --build

That's it!

Tips & tricks

  1. Server settings are located in ./pb-data/settings.json, you need to change serverAddress after frist launch in order to deploy

  2. 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