From 4db8e4ac03801bb73918c485a69d5321b412b959 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 21 Feb 2022 20:39:54 +0100 Subject: [PATCH] Add Rocket.toml example file; fix syntax Also ignore a local `Rocket.toml`; it can be used for development without comitting it. --- .gitignore | 1 + README.md | 4 ++-- Rocket.toml.example | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 Rocket.toml.example diff --git a/.gitignore b/.gitignore index ea8c4bf..c1cdd55 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +Rocket.toml diff --git a/README.md b/README.md index 86a5f11..68cddd5 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/Rocket.toml.example b/Rocket.toml.example new file mode 100644 index 0000000..0acfef4 --- /dev/null +++ b/Rocket.toml.example @@ -0,0 +1,3 @@ +[default] +address = "0.0.0.0" +port = 2356