From b9d75e22db72aabf47815e381aa6432c1bff3877 Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Mon, 1 Sep 2025 13:32:05 +0300 Subject: Add account endpoints --- .zed/tasks.json | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to '.zed/tasks.json') diff --git a/.zed/tasks.json b/.zed/tasks.json index e725a43..cf60465 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -31,13 +31,41 @@ "hide": "never", "shell": "system" }, + { + "label": "Run debug database", + "command": "docker", + "args": [ + "run", + "--name", + "debug-postgres", + "-e", + "POSTGRES_PASSWORD=itmo_queue", + "-e", + "POSTGRES_USER=itmo_queue", + "-e", + "POSTGRES_DB=itmo_queue", + "-p", + "5432:5432", + "--rm", + "postgres" + ], + + "use_new_terminal": false, + "allow_concurrent_runs": false, + "reveal": "no_focus", + "reveal_target": "dock", + "hide": "never", + "shell": "system" + }, { "label": "Run release server", "command": "cargo", "args": ["run", "-r"], "env": { - "SERVER_BIND": "0.0.0.0:8080" + "SECRET": "secret", + "SERVER_BIND": "0.0.0.0:8080", + "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" }, "use_new_terminal": false, @@ -53,7 +81,9 @@ "args": ["run"], "env": { - "SERVER_BIND": "0.0.0.0:8080" + "SECRET": "secret", + "SERVER_BIND": "0.0.0.0:8080", + "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" }, "use_new_terminal": false, -- cgit v1.2.3