Packages
Automatically finds an available local TCP port, so multiple Phoenix apps can run at once.
Current section
Files
Jump to
Current section
Files
CHANGELOG.md
# Changelog
## v1.0.0
First stable release.
- `AutoPort.find/2` returns the first available port at or after a starting
port, or within an explicit range, raising `AutoPort.Error` when exhausted.
- `AutoPort.fetch/2` returns `{:ok, port}` / `{:error, message}`.
- `AutoPort.available?/2` probes a single port.
- `PORT` (configurable via the `:env` option) overrides the target and the
search continues upwards from there.
- Options: `:ip`, `:verbose`, `:env`.
- No runtime dependencies.