ContributingDevelopment setup
Keep your real server safe
If a Ferry server runs on the machine, give the development server its own data directory, name prefix and ports.
Your usual server owns the containers with the prefix ferry.
1 / 3
The flags
./target/debug/ferryd run \
--data-dir ./dev-data \
--name-prefix ferrydev \
--api-addr 127.0.0.1:17878 \
--proxy-addr 127.0.0.1:18080| Flag | The development server gets |
|---|---|
--data-dir ./dev-data | Its own data directory |
--name-prefix ferrydev | Its own name prefix for the Docker names |
--api-addr 127.0.0.1:17878 | Its own address for the API |
--proxy-addr 127.0.0.1:18080 | Its own address for the proxy |
Why it is safe
ferryd refuses to start on a prefix that another data directory owns. This protects the containers of the other server.
Multiple servers gives the full rules.