attach
Stream the log of an app.
lly attach [SLUG|ID] [--build] [--tail <N>]Streams the build log while the app builds and the app output after the deploy.
lly attach copperfox
lly attach copperfox --tail 100
lly attach copperfox --build > build.logThe log goes to stdout, notes go to stderr. The output can be piped or written to a file. A build log ends when the build is finished. App output streams until Ctrl-C.
Options
| Option | Description |
|---|---|
--build | Show the build log, also after the deploy |
--tail <N> | Start with the last N lines |
If a deploy fails, lly attach --build <slug> shows the cause.
JSON output
lly attach prints plain text, also with --json.
See also
- Read logs: the same task step by step