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

@ -6,5 +6,6 @@
/__pycache__
/README.md
/public/songs
/scripts

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
```

View File

@ -12,5 +12,5 @@ requests==2.31.0
websockets==12.0
Werkzeug==3.0.1
jinja2==3.1.3
git+https://github.com/nurse/nkf.git#egg=nkf&subdirectory=NKF.python3
nkf==1.0.3
tjaf==1.0.6

View File

@ -1,3 +0,0 @@
#!/bin/bash
docker build -t taiko .

View File

@ -1,18 +0,0 @@
#!/bin/bash
docker run --detach \
--name taiko-mongo-debug \
--volume taiko-mongo-debug:/data/db \
--publish 27017:27017 \
mongo
docker run --detach \
--name taiko-redis-debug \
--volume taiko-redis-debug:/data \
--publish 6379:6379 \
redis
#pip install -r requirements.txt
#flask run
python -m flask run

View File

@ -1,26 +0,0 @@
#!/bin/bash
docker kill taiko-mongo taiko-redis taiko
docker rm -f taiko-mongo taiko-redis taiko
docker run --detach \
--name taiko-mongo \
--volume taiko-mongo:/data/db \
mongo
docker run --detach \
--name taiko-redis \
--volume taiko-redis:/data \
redis
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