gunicornでサーバーを起動
This commit is contained in:
parent
4d9bd68740
commit
87804ce2a8
|
@ -3,4 +3,4 @@ COPY . /app
|
|||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
CMD ["waitress-serve", "app:app"]
|
||||
CMD ["gunicorn", "app:app", "--access-logfile", "-", "--bind", "0.0.0.0"]
|
||||
|
|
|
@ -73,9 +73,9 @@ docker run --detach \
|
|||
--env TAIKO_WEB_MONGO_HOST=taiko-mongo \
|
||||
--env TAIKO_WEB_REDIS_HOST=taiko-redis \
|
||||
--volume songs:/app/public/songs \
|
||||
--env LETSENCRYPT_HOST=yuuk1.tk,yuuk1.uk,taikoapp.uk,forgejo.win \
|
||||
--env VIRTUAL_HOST=yuuk1.tk,yuuk1.uk,taikoapp.uk,forgejo.win \
|
||||
--env VIRTUAL_PORT=8080 \
|
||||
--env LETSENCRYPT_HOST=forgejo.win,yuuk1.tk,yuuk1.uk,taikoapp.uk \
|
||||
--env VIRTUAL_HOST=forgejo.win,yuuk1.tk,yuuk1.uk,taikoapp.uk \
|
||||
--env VIRTUAL_PORT=8000 \
|
||||
taiko
|
||||
```
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
|
||||
<form id="upload-form" enctype="multipart/form-data">
|
||||
<label for="file_tja">TJA ファイル:</label>
|
||||
<input type="file" name="file_tja" accept=".tja" required><br>
|
||||
<input type="file" name="file_tja" accept=".tja" required>
|
||||
|
||||
<label for="file_music">音楽ファイル:</label>
|
||||
<input type="file" name="file_music" accept=".ogg,.mp3,.wav" required><br>
|
||||
<input type="file" name="file_music" accept=".ogg,.mp3,.wav" required>
|
||||
</form>
|
||||
|
||||
<button type="button" onclick="uploadFiles()">今すぐ投稿! (1分ほどかかる場合があります)</button>
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
bcrypt==4.1.2
|
||||
ffmpy==0.3.2
|
||||
Flask==3.0.2
|
||||
Flask==3.0.3
|
||||
Flask-Caching==2.1.0
|
||||
Flask-Session==0.6.0
|
||||
Flask-Session==0.8.0
|
||||
Flask-WTF==1.2.1
|
||||
gunicorn==21.2.0
|
||||
gunicorn==22.0.0
|
||||
jsonschema==4.21.1
|
||||
pymongo==4.6.1
|
||||
redis==5.0.1
|
||||
pymongo==4.6.3
|
||||
redis==5.0.3
|
||||
requests==2.31.0
|
||||
websockets==12.0
|
||||
Werkzeug==3.0.1
|
||||
Werkzeug==3.0.2
|
||||
jinja2==3.1.3
|
||||
nkf==1.0.3
|
||||
nkf==1.0.4
|
||||
tjaf==1.0.6
|
||||
waitress==3.0.0
|
||||
|
|
Loading…
Reference in New Issue