- Removing unused .env files

Opting now for config.json files as they better interoperability between node and rust

+ Hardcoding some variables into build-db.sh
This really shouldn't be an issue however

+ using cat to dump out what table structures are being setup due to strange bugs in pipeline
This commit is contained in:
shockrah
2021-05-10 15:58:57 -07:00
parent 96bdd70cd5
commit 83f846640c
4 changed files with 9 additions and 52 deletions

View File

@@ -1,19 +0,0 @@
DATABASE_URL=mysql://freechat_dev:password@localhost:3306/freechat
DATABASE_NAME=freechat
DATABASE_PASS=password
DATABASE_USER=freechat_dev
DATABASE_HOST=localhost
DATABASE_PORT=3306
# Note that these should literally never point to the same file
# that completely breaks the web socket's permissions+authentication model
HMAC_PATH=hmac.secret
WSS_HMAC_PATH=wss-hmac.secret
# Server meta things
SERVER_NAME="Freechat Dev Server"
SERVER_DESCRIPTION="Server for sick development things"
# NOTE: most clients shouldn't expect these to end with a slash
PUBLIC_URL=http://localhost:4536
PUBLIC_WS_URL=ws://localhost:5648

View File

@@ -26,7 +26,7 @@ def create_admin() -> Admin :
CARGO_BIN = os.getenv('CARGO_BIN')
proc = subprocess.run(
f'cargo run --release -- -c python-tester'.split(),
f'cargo run --release -- -c ../config.json'.split(),
text=True, capture_output=True
)
try: