docs: update usage of --file

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2023-10-15 12:53:46 -04:00
parent 883a449a9e
commit 9a9ddb788f
2 changed files with 20 additions and 16 deletions

View file

@ -23,7 +23,7 @@ Once installed, you can use it like the following examples.
using a mbtiles file using a mbtiles file
```bash ```bash
wget https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles wget https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles
tileserver-gl --mbtiles zurich_switzerland.mbtiles tileserver-gl --file zurich_switzerland.mbtiles
[in your browser, visit http://[server ip]:8080] [in your browser, visit http://[server ip]:8080]
``` ```
@ -44,7 +44,7 @@ An alternative to npm to start the packed software easier is to install [Docker]
Example using a mbtiles file Example using a mbtiles file
```bash ```bash
wget https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles wget https://github.com/maptiler/tileserver-gl/releases/download/v1.3.0/zurich_switzerland.mbtiles
docker run --rm -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl --mbtiles zurich_switzerland.mbtiles docker run --rm -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl --file zurich_switzerland.mbtiles
[in your browser, visit http://[server ip]:8080] [in your browser, visit http://[server ip]:8080]
``` ```

View file

@ -6,28 +6,32 @@ Getting started
====== ======
:: ::
Usage: main.js tileserver-gl [mbtiles] [options] Usage: main.js tileserver-gl [file] [options]
Options: Options:
--file <file> MBTiles or PMTiles file
-h, --help output usage information ignored if the configuration file is also specified
--mbtiles <file> MBTiles file (uses demo configuration); --mbtiles <file> (DEPRECIATED) MBTiles file
ignored if the configuration file is also specified ignored if file is also specified
-c, --config <file> Configuration file [config.json] ignored if the configuration file is also specified
-b, --bind <address> Bind address -c, --config <file> Configuration file [config.json] (default: "config.json")
-p, --port <port> Port [8080] -b, --bind <address> Bind address
-C|--no-cors Disable Cross-origin resource sharing headers -p, --port <port> Port [8080] (default: 8080)
-u|--public_url <url> Enable exposing the server on subpaths, not necessarily the root of the domain -C|--no-cors Disable Cross-origin resource sharing headers
-V, --verbose More verbose output -u|--public_url <url> Enable exposing the server on subpaths, not necessarily the root of the domain
-s, --silent Less verbose output -V, --verbose More verbose output
-v, --version Version info -s, --silent Less verbose output
-l|--log_file <file> output log file (defaults to standard out)
-f|--log_format <format> define the log format: https://github.com/expressjs/morgan#morganformat-options
-v, --version output the version number
-h, --help display help for command
Default preview style and configuration Default preview style and configuration
====== ======
- If no configuration file is specified, a default preview style (compatible with openmaptiles) is used. - If no configuration file is specified, a default preview style (compatible with openmaptiles) is used.
- If no mbtiles file is specified (and is not found in the current working directory), a sample file is downloaded (showing the Zurich area) - If no data file is specified (and is not found in the current working directory), a sample file is downloaded (showing the Zurich area)
Reloading the configuration Reloading the configuration
====== ======