I have a tile server I've built on Ubuntu 18.04LTS using steps/sources from here. Here is where I differed. I added a postgres cluster on another filesystem, and added the service on port 5433. Using a global environment variable, I set PGPORT to 5433; issuing However,
I figured this error is occurring because I grep'd source code looking for a hardcoded port, but it didn't jump out at me. So, I started looking for Specifically:
asked 15 Jun '18, 16:35 tim_rohrer |
This is not a If your XML is generated from a .mml/.yml file using the carto compiler, then you have to set the port in your .mml/.yml file accordingly. answered 15 Jun '18, 19:25 Frederik Ramm ♦ My XML is generated from the From my read of the link, in the Layer section of the MML, I should add attributes for the Datasource. Do I have to add And thank you for helping me understand the dependencies!
(16 Jun '18, 04:02)
tim_rohrer
1
Never tried it, but a quick web search finds this which has a syntax for "port" in a project.mml.
(16 Jun '18, 10:13)
SomeoneElse ♦
Thanks @SomeoneElse. I promise I had been doing a lot of web searching when I wrote the comment. :-) That post had not come up. Interestingly, I had tried to add some lines to the JSON, but carto wasn't liking what I was doing. Then I came across (this)[https://cartocss.readthedocs.io/en/latest/mml.html] which seemed to suggest the file needed to be in yaml to have global-like settings. I converted the project.mml to yaml, but haven't tested it with carto yet. I did do a global replace to add the port settings after the type line (70 replacements), and that seems to have worked. Not very elegant :-) If I come up with a better process, I'll come back here an post a complete answer for future searchers.
(16 Jun '18, 15:56)
tim_rohrer
|