Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running Tilestream without HOME in the environment (fixes #155) #156

Closed
wants to merge 1 commit into from

Conversation

wrigby
Copy link

@wrigby wrigby commented Dec 1, 2015

This falls back to serving tiles from ./tiles in case the HOME environment variable is undefined, which makes it easier to run Tilestream under a process supervisor or from an init script (see #155).

I'm not 100% sure this is the desired behavior in a situation like this, but I figured I would get a PR up as soon as possible.

Not-so-exhaustive testing:

$ node --harmony index.js start --help
Usage: node index.js <command> [options...]
Commands: start application
  start

Options:
    --host               Hostnames allowed for requests. Wildcards are allowed. (Default: ["127.0.0.1","localhost","<redacted>"])
    --uiPort=[port]      UI server port. (Default: 8888)
    --tilePort=[port]    Tile server port. (Default: 8888)
    --tileHost=[host]    Tile hostname (Default: undefined)
    --subdomains=[list]  Comma separated list of subdomains to use for tiles. (Default: undefined)
    --tiles=[path]       Path to tiles directory. (Default: "/home/users/wrigby/Documents/MapBox/tiles")
    --accesslog          Print every request to stdout. (Default: false)
    --config=[path]      Path to JSON configuration file.
$ unset HOME
$ node --harmony index.js start --help
Usage: node index.js <command> [options...]
Commands: start application
  start

Options:
    --host               Hostnames allowed for requests. Wildcards are allowed. (Default: ["127.0.0.1","localhost","<redacted>"])
    --uiPort=[port]      UI server port. (Default: 8888)
    --tilePort=[port]    Tile server port. (Default: 8888)
    --tileHost=[host]    Tile hostname (Default: undefined)
    --subdomains=[list]  Comma separated list of subdomains to use for tiles. (Default: undefined)
    --tiles=[path]       Path to tiles directory. (Default: "/usr/lib/node_modules/tiles")
    --accesslog          Print every request to stdout. (Default: false)
    --config=[path]      Path to JSON configuration file.

Falls back to serving tiles from ./tiles in case
the HOME environment variable is undefined.
@tmcw
Copy link
Contributor

tmcw commented Dec 22, 2016

Closing; tilestream is deprecated in favor of any of many mvt servers - feel free to fork if you need an essential feature or switch to an alternative.

@tmcw tmcw closed this Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants