trmnl_preview 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -1
- data/lib/trmnlp/cli.rb +5 -1
- data/lib/trmnlp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04ad9007c6a3cc5b8d3c724ec349b204c977f861fc41cb637428fba48c715b89
|
|
4
|
+
data.tar.gz: ebc4873c90c6effcfc356ff13e38eb9b63d7547af14b85dc62eb84bb48145893
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c43c02691942bcea76563ce97d2b7e55f3327d207747a930374f750ad4edd257f8ed5b5edb94424ec008c3d0047735df33cb51399d44023a28522169613c6148
|
|
7
|
+
data.tar.gz: 125935ffec1af3606b4a1f6e0d7687137349f25f2da0da1f03e989ad598c25b34cf56f23964ab5d16f448632307b858744bd3d7547c5babda94bb8e1bb828ba7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
|
+
## 0.8.9
|
|
5
|
+
|
|
6
|
+
- Fixed `trmnlp serve` binding to localhost under Podman, which left the dev server unreachable through published ports. Container detection only looked for `/.dockerenv`, which Docker writes but Podman does not, so `serve` fell back to `127.0.0.1`. It now also checks for `/run/.containerenv`, which Podman writes, so the automatic `0.0.0.0` bind works for both runtimes. (#112)
|
|
7
|
+
|
|
4
8
|
## 0.8.8
|
|
5
9
|
|
|
6
10
|
- Added a `--server` flag to `trmnlp login` so commands like `trmnlp push` can target a self-hosted (BYOS) server. The chosen URL is saved as `base_url`, and the `user_` API key prefix is only required for trmnl.com; BYOS servers accept their own token formats. A scheme-less `--server` value (such as `localhost:3000`) no longer crashes the host check. (#113)
|
data/README.md
CHANGED
|
@@ -206,7 +206,8 @@ docker run \
|
|
|
206
206
|
--pull always \
|
|
207
207
|
--publish 4567:4567 \
|
|
208
208
|
--volume "$(pwd):/plugin" \
|
|
209
|
-
trmnl/trmnlp serve
|
|
209
|
+
trmnl/trmnlp serve \
|
|
210
|
+
--bind 0.0.0.0
|
|
210
211
|
```
|
|
211
212
|
|
|
212
213
|
`--pull always` checks the registry on every run and pulls a newer image if one exists, so you don't have to remember to `docker pull` after each release.
|
data/lib/trmnlp/cli.rb
CHANGED
|
@@ -16,7 +16,11 @@ module TRMNLP
|
|
|
16
16
|
|
|
17
17
|
def self.exit_on_failure? = true
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
# Docker writes /.dockerenv; Podman writes /run/.containerenv. Either means we're
|
|
20
|
+
# in a container, where binding to localhost makes the dev server unreachable via
|
|
21
|
+
# published ports, so we bind to all interfaces instead.
|
|
22
|
+
def self.in_container? = File.exist?('/.dockerenv') || File.exist?('/run/.containerenv')
|
|
23
|
+
def self.default_bind = in_container? ? '0.0.0.0' : '127.0.0.1'
|
|
20
24
|
|
|
21
25
|
desc 'build', 'Generate static HTML files'
|
|
22
26
|
method_option :png, type: :boolean, default: false, desc: 'Also render a PNG per view'
|
data/lib/trmnlp/version.rb
CHANGED