readme changes

This commit is contained in:
leca 2023-08-01 15:39:10 +03:00
parent f9fdd43f9f
commit 8a0dcde4d9
1 changed files with 13 additions and 1 deletions

View File

@ -4,15 +4,27 @@ Self-hosted pixel battle written in NodeJS
# Deploying # Deploying
## Traditional
To deploy this pixelbattle, you need to: To deploy this pixelbattle, you need to:
1. Clone this repo: 1. Clone this repo:
`git clone https://git.foxarmy.org/leca/pixelbattle` `git clone https://git.foxarmy.org/leca/pixelbattle`
2. Install node deps: 2. Install node deps:
`npm update` `npm install`
3. Run: 3. Run:
`npm run prod` `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! That's it!
# Tips & tricks # Tips & tricks