From 8a0dcde4d9515e02be34a3526a4ab11ba3b3a03a Mon Sep 17 00:00:00 2001 From: leca Date: Tue, 1 Aug 2023 15:39:10 +0300 Subject: [PATCH] readme changes --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c3acfc..34d1685 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,27 @@ 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 update` + `npm install` 3. Run: `npm run prod` +## 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 clone https://git.foxarmy.org/leca/pixelbattle` + `docker-compose up --build` + That's it! # Tips & tricks