Coder Social home page Coder Social logo

Comments (6)

pka avatar pka commented on May 30, 2024

Makes absolutely sense, but I could swear it worked for me...

from t-rex.

hunt3ri avatar hunt3ri commented on May 30, 2024

I'm completely prepared to believe I've made an elementary mistake. However, I tried a few things with no success.

A config switch on the next release to specify the socket would be awesome. Gunicorn calls the switch bind, and uwsgi http-socket. Perhaps http-socket is the most descriptive. Something like:

t_rex serve --dbconn postgresql://postgres:password@postgis/data-loader --http-socket 0.0.0.0:6767

from t-rex.

pka avatar pka commented on May 30, 2024

You can configure the bind adress, but currently only in the configuration file: http://t-rex.tileserver.ch/doc/configuration/
It makes absolutely sense to expose this as a command line parameter.

from t-rex.

hunt3ri avatar hunt3ri commented on May 30, 2024

Ahhhhhhh I didn't see that config option right at the bottom of the config file 😄

Tweaked it and now happily running t_rex from within docker. It would be handy having it as a cli param though.

Thanks for the quick response.

from t-rex.

pka avatar pka commented on May 30, 2024

CLI options bind and port are added now and a Docker image is published.

Usage example:

docker pull sourcepole/t-rex
docker run -p 6767:6767 -v $(pwd):/var/data/in sourcepole/t-rex serve --bind=0.0.0.0 --openbrowser=false --datasource=t-rex-gdal/natural_earth.gpkg

from t-rex.

hunt3ri avatar hunt3ri commented on May 30, 2024

Thanks for implementing this, appreciated 👍

from t-rex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.