From ab4df6ad6dabc3ead49d63f9622188ee0f685d62 Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Tue, 23 Sep 2025 22:22:30 +0300 Subject: Reorder tasks --- .zed/tasks.json | 67 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 31 deletions(-) (limited to '.zed') diff --git a/.zed/tasks.json b/.zed/tasks.json index c11d9cc..3f9af37 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -1,12 +1,24 @@ [ + // up database { - "label": "Run migrations", - "command": "sea-orm-cli", - "args": ["migrate", "up"], - - "env": { - "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" - }, + "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", + "-d", + "postgres" + ], "use_new_terminal": false, "allow_concurrent_runs": false, @@ -15,10 +27,11 @@ "hide": "never", "shell": "system" }, + // run migration { - "label": "Generate entity files", + "label": "Run migrations", "command": "sea-orm-cli", - "args": ["generate", "entity", "--lib", "--ignore-tables", "migrations", "-o", "entity/src/"], + "args": ["migrate", "up"], "env": { "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" @@ -31,25 +44,15 @@ "hide": "never", "shell": "system" }, + // gen entities { - "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", - "-d", - "postgres" - ], + "label": "Generate entity files", + "command": "sea-orm-cli", + "args": ["generate", "entity", "--lib", "--ignore-tables", "migrations", "-o", "entity/src/"], + + "env": { + "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" + }, "use_new_terminal": false, "allow_concurrent_runs": false, @@ -58,10 +61,11 @@ "hide": "never", "shell": "system" }, + // run debug { - "label": "Run release server", + "label": "Run debug server", "command": "cargo", - "args": ["run", "-r"], + "args": ["run"], "env": { "SECRET": "secret", @@ -76,10 +80,11 @@ "hide": "never", "shell": "system" }, + // run release { - "label": "Run debug server", + "label": "Run release server", "command": "cargo", - "args": ["run"], + "args": ["run", "-r"], "env": { "SECRET": "secret", -- cgit v1.2.3