Add Rocket.toml example file; fix syntax

Also ignore a local `Rocket.toml`; it can be used for development
without comitting it.
This commit is contained in:
Paul van Tilburg 2022-02-21 20:39:54 +01:00
parent 84a434268f
commit 4db8e4ac03
3 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/target
Rocket.toml

View File

@ -33,11 +33,11 @@ $ cargo run --release
add `--release`.)
You can provide Rocket with configuration to use a different address and/or port.
Just create a `Rocket.toml` file that contains:
Just create a `Rocket.toml` file that contains (or copy `Rocket.toml.example`):
```toml
[default]
address = 0.0.0.0
address = "0.0.0.0"
port = 4321
```

3
Rocket.toml.example Normal file
View File

@ -0,0 +1,3 @@
[default]
address = "0.0.0.0"
port = 2356