mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Extract complex npm scripts to separate files
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
cd backend
|
||||
dotenv -e ../deployment/.env -- \
|
||||
../.venv/bin/uvicorn main:app \
|
||||
--host 127.0.0.1 \
|
||||
--port 8300 \
|
||||
--reload \
|
||||
--reload-exclude './alembic' \
|
||||
--reload-exclude './alembic/*' \
|
||||
--reload-exclude './alembic/versions/*' \
|
||||
--access-log
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo > deployment/.env
|
||||
|
||||
./.venv/bin/python3 backend/generate_vapid_keys.py >> deployment/.env
|
||||
|
||||
cat >> deployment/.env <<EOF
|
||||
JWT_SECRET="$(openssl rand -base64 32)"
|
||||
TURN_USERNAME=<set>
|
||||
TURN_SECRET=<set>
|
||||
EOF
|
||||
Reference in New Issue
Block a user