Go to file
yuukiwww e4719b8f07 only taikoapp.uk 2024-04-28 09:29:23 +00:00
.devcontainer update homepage link 2024-04-28 06:50:35 +00:00
.github Lyrics, search, and other fixes 2022-07-15 16:00:43 +02:00
public update homepage link 2024-04-28 06:50:35 +00:00
templates 検索エンジンに強くなる 2024-04-19 16:08:48 +00:00
tools Add manifest to nginx.conf example 2022-11-22 17:56:27 +01:00
.dockerignore nkfの更新と説明の追加 2024-04-04 09:22:05 +00:00
.gitattributes 💥🐫 Added .gitattributes & .gitignore files 2015-07-17 17:21:53 +09:00
.gitignore /__pycache__をignore 2024-02-13 12:06:31 +09:00
Dockerfile gunicornでサーバーを起動 2024-04-19 15:36:05 +00:00
README.md only taikoapp.uk 2024-04-28 09:29:23 +00:00
app.py 統計情報をホームページに移動する 2024-04-21 13:23:25 +00:00
config.example.py Add base directory support 2022-08-21 22:48:24 +02:00
config.py configの初期値を復元 2024-02-13 10:17:28 +09:00
requirements.txt 統計情報を表示する 2024-04-20 01:16:48 +00:00
schema.py Add custom Don 2020-04-04 16:48:58 +03:00
server.py removed 2024-02-13 12:16:49 +09:00

README.md

太鼓ウェブ

この太鼓ウェブは改良版です

デバッグの開始

依存関係をインストールします

pip install -r requirements.txt

データベースを起動します

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

サーバーを起動してください

flask run

デプロイ

Dockerイメージをビルドします

docker build -t 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=8000 \
  taiko

終了するには

docker stop taiko-mongo taiko-redis taiko
docker rm -f taiko-mongo taiko-redis taiko