nkfの更新と説明の追加

This commit is contained in:
yuuki
2024-04-04 09:22:05 +00:00
parent f1ddbfec58
commit f313e5c51f
6 changed files with 84 additions and 55 deletions

View File

@@ -1,9 +1,84 @@
# taiko-web
A web-based Taiko no Tatsujin simulator.
# 太鼓ウェブ
Running instance: [https://taiko.bui.pm](https://taiko.bui.pm)
この太鼓ウェブは改良版です
Still in development. Works best with Chrome.
## デバッグの開始
## Setup
Please see the [Setup](https://github.com/bui/taiko-web/wiki/Setup) page for setup instructions.
依存関係をインストールします
```bash
pip install -r requirements.txt
```
データベースを起動します
```bash
docker run --detach \
--name taiko-mongo-debug \
--volume taiko-mongo-debug:/data/db \
--publish 27017:27017 \
mongo
```
```bash
docker run --detach \
--name taiko-redis-debug \
--volume taiko-redis-debug:/data \
--publish 6379:6379 \
redis
```
サーバーを起動してください
```bash
flask run
```
## デプロイ
Dockerイメージをビルドします
```bash
docker build -t taiko .
```
データベースを起動します
```bash
docker run --detach \
--name taiko-mongo \
--volume taiko-mongo:/data/db \
mongo
```
```bash
docker run --detach \
--name taiko-redis \
--volume taiko-redis:/data \
redis
```
今すぐデプロイ!
- https://taikoapp.uk/
```bash
docker run --detach \
--name taiko \
--link taiko-mongo \
--link taiko-redis \
--env TAIKO_WEB_MONGO_HOST=taiko-mongo \
--env TAIKO_WEB_REDIS_HOST=taiko-redis \
--volume songs:/app/public/songs \
--env LETSENCRYPT_HOST=taikoapp.uk \
--env VIRTUAL_HOST=taikoapp.uk \
--env VIRTUAL_PORT=8080 \
taiko
```
終了するには
```bash
docker stop taiko-mongo taiko-redis taiko
docker rm -f taiko-mongo taiko-redis taiko
```