Skip to content

Commit 0a5ffc6

Browse files
committed
Add logs, auto start of dev services, and background mode to plain dev
1 parent 37fa6f3 commit 0a5ffc6

File tree

8 files changed

+805
-551
lines changed

8 files changed

+805
-551
lines changed

plain-dev/plain/dev/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The `plain.dev` package can be [installed from PyPI](https://pypi.org/project/pl
88

99
- [`plain dev`](#plain-dev)
1010
- [`plain dev services`](#plain-dev-services)
11+
- [`plain dev logs`](#plain-dev-logs)
1112
- [`plain pre-commit`](#plain-pre-commit)
1213
- [`plain contrib`](#plain-contrib)
1314
- [VS Code debugging](#vscode-debugging)
@@ -44,12 +45,26 @@ Unlike [services](#services), custom processes are _only_ run during `plain dev`
4445
```toml
4546
# pyproject.toml
4647
[tool.plain.dev.run]
47-
ngrok = {command = "ngrok http $PORT"}
48+
ngrok = {command = "ngrok http $PORT"}
4849
```
4950

5051
## `plain dev services`
5152

5253
Starts your [services](#services) by themselves.
54+
Logs are stored in `.plain/dev/logs/services/`.
55+
56+
## `plain dev logs`
57+
58+
Show output from recent `plain dev` runs.
59+
60+
Logs are stored in `.plain/dev/logs/run/`.
61+
62+
```bash
63+
plain dev logs # print last log
64+
plain dev logs -f # follow the latest log
65+
plain dev logs --pid 1234
66+
plain dev logs --path
67+
```
5368

5469
## `plain pre-commit`
5570

0 commit comments

Comments
 (0)