Skip to content

Commit

Permalink
Merge pull request #7 from pocketenv-io/feat/logs-after-up
Browse files Browse the repository at this point in the history
feat: always display logs after pocketenv up
  • Loading branch information
tsirysndr authored Aug 20, 2024
2 parents 5202600 + 0458987 commit ad3b7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
run: |
deno run -A --unstable-kv main.ts init -t tsirysndr/base-workspace
deno run -A --unstable-kv main.ts up
deno run -A --unstable-kv main.ts logs
docker ps
- name: Destroy
run: |
Expand Down
2 changes: 2 additions & 0 deletions src/cmd/up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { existsSync } from "node:fs";
import { POCKETENV_CACHE_DIR } from "../consts.ts";
import { spawn } from "../lib.ts";
import * as workspaces from "../workspaces.ts";
import showLogs from "./logs.ts";

async function up(
{
Expand Down Expand Up @@ -70,6 +71,7 @@ async function up(
createdAt: result?.createdAt || new Date().toISOString(),
updatedAt: new Date().toISOString(),
});
await showLogs({ follow: false });
}

export default up;

0 comments on commit ad3b7ef

Please sign in to comment.