landfall 0.4.4 → 0.4.6

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.
package/README.md CHANGED
@@ -146,6 +146,7 @@ lf deploy -d example.com -d www.example.com -s vps # static, name = folder
146
146
  lf deploy -b "npm run build" # build locally first
147
147
  lf deploy -d app.example.com -e DATABASE_URL=postgres://… --env-file .env.production # Dockerfile app
148
148
  lf deploy -n api --image ghcr.io/me/api:1.4 --port 8080 -d api.example.com # image
149
+ lf deploy --no-domain # no domain yet: reach it with lf tunnel, add one later with lf domains --add
149
150
  lf deploy # later: redeploy using ./.landfall.json
150
151
  ```
151
152
 
@@ -266,6 +267,8 @@ lf auth --rm-user anna | --off
266
267
  lf open
267
268
  lf tunnel blog # http://localhost:<port> straight to its container: test it without a domain
268
269
  lf tunnel my-compose-app -s het # also any Compose project or container landfall did not deploy
270
+ lf tunnel my-app db # a database: postgresql://localhost:5432 (the port its image exposes; --port picks another)
271
+ lf tunnel blog -l 3000 --lan # local port 3000, also on this machine's network: open it from a phone on the same Wi-Fi
269
272
  lf sites rm blog # delete the site (asks you to type the name)
270
273
  lf logs api -s vps # another site on another server
271
274
  ```
@@ -412,7 +415,7 @@ The web dashboard (`lf ui`) listens on `127.0.0.1` and opens your browser. Serve
412
415
  local folders or takes a dropped folder or `.zip`. Every action streams the output of its plain command into a side
413
416
  panel. Destructive actions ask first. Login works through the printed `/login?t=…` link. The token is kept in
414
417
  `~/.config/landfall/ui-token`, and you can delete that file to rotate it. Requests with a foreign `Host` or `Origin`
415
- are refused. Running `lf ui` again while the dashboard is running just opens the page.
418
+ are refused. Running `lf ui` again while the dashboard is running just opens the page. If another program has port 4777, it takes the next free one (an explicit `--port` fails instead).
416
419
 
417
420
  ## Using landfall from scripts and agents
418
421