rb-portless 0.1.0.dev.20260630.6937702 → 0.1.0
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/README.md +0 -23
- data/lib/portless/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: fe5a5a76f71f89027e083e3ba964520c22aef5f1a42ecefc3850e16a0ac16bb2
|
|
4
|
+
data.tar.gz: 13081e8f73114575b5a96ab27f9dec30c4949f333fa3c95ba0659f104cf16b19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06a5c203d83b18de91ca2248744854e71933cdb4771626d8ae7af4e9bdbc2840c98edcfcc9cc51a9b88f9b6d6d9431c733118910bfcb380c372b9ad2151916e0
|
|
7
|
+
data.tar.gz: 44412d9c53a6c2990af830497f55bfd30cc5a3f4e9cd2032a9b5347cfc6853931e0754191ecb634607cfbaffc448e3ba4b333f259ae037d759ff6b15f31ccd3c
|
data/README.md
CHANGED
|
@@ -164,29 +164,6 @@ boundary). For ports < 1024 it re-execs under `sudo` so the elevated process can
|
|
|
164
164
|
bind the socket, then hands ownership of state files back to you. See
|
|
165
165
|
[`AGENTS.md`](AGENTS.md) for the full architecture.
|
|
166
166
|
|
|
167
|
-
## Compared to portless (Node)
|
|
168
|
-
|
|
169
|
-
The mental model is identical — `run` wraps your dev command, the proxy
|
|
170
|
-
auto-starts, named `.localhost` URLs replace ports. The only Ruby-world addition
|
|
171
|
-
is the one-line `require "portless/rails"` to satisfy Rails' host authorization.
|
|
172
|
-
|
|
173
|
-
| | **portless (Node)** | **rb-portless (Ruby/Rails)** |
|
|
174
|
-
|---|---|---|
|
|
175
|
-
| Install | `npm i -g portless` | `gem install rb-portless` (or Gemfile dev group) |
|
|
176
|
-
| Run a server | `portless run next dev` | `rb-portless run bin/rails server` |
|
|
177
|
-
| Run the dev orchestrator | `portless` (runs `"dev"` script) | `rb-portless run bin/dev` (wraps Foreman) |
|
|
178
|
-
| Bake into the project | `"dev": "portless run next dev"` → `npm run dev` | put `rb-portless run` in `bin/dev`, or use the binstub |
|
|
179
|
-
| Name the URL | `portless myapp …` / `portless.json` | `portless.json` `{ "name": "myapp" }` (else dir/git root) |
|
|
180
|
-
| Wildcard tenant subdomains | `tld` config | `portless.json` `{ "tld": "myapp.localhost" }` → `*.myapp.localhost` |
|
|
181
|
-
| Pin the backend port | `--app-port` / `appPort` | `appPort` in `portless.json` |
|
|
182
|
-
| Framework port injection | vite/astro/etc. auto | same (Rails/puma respect `PORT` natively) |
|
|
183
|
-
| HTTPS trust | auto on first run (+ `portless trust`) | `rb-portless trust` (one-time) |
|
|
184
|
-
| **Host allowlist** | not needed | **`gem "rb-portless", require: "portless/rails"`** (Rails-only) |
|
|
185
|
-
| Privileged 443 bind | sudo re-exec (auto) | sudo re-exec (auto), `:1355` fallback |
|
|
186
|
-
| Bind at boot (no sudo) | `portless service install` | `rb-portless service install` |
|
|
187
|
-
| Inspect / manage | `portless list / doctor / clean` | `rb-portless list / doctor / clean` |
|
|
188
|
-
| Static route (DB, etc.) | `portless alias pg 5432` | `rb-portless alias pg 5432` |
|
|
189
|
-
|
|
190
167
|
## Contributing
|
|
191
168
|
|
|
192
169
|
```bash
|
data/lib/portless/version.rb
CHANGED