tilemaker how to host tiles on ubuntu 23.04

221 Views Asked by At

Using instructions from tilemaker to host tiles locally on Ubunut 23.04

Created croatia.mbtiles successfully but having problems hosting them.

After:

sudo apt install sqlite3 libsqlite3-dev ruby ruby-dev
sudo gem install sqlite3 cgi glug rack rackup

I have noticed that I have not server.rb, so I downloaded entire server folder

But after running: ruby server.rb croatia.mbtiles I get

server.rb:1:in <main>': undefined local variable or method null' for main:Object (NameError)

What did I miss?

1

There are 1 best solutions below

0
d1sh4 On

I'm surprised that the folder was missing.

Did you git clone https://github.com/systemed/tilemaker.git?

If not, please do that and follow the steps described in the "Out-of-the-box setup" section of the Readme file. There are multiple steps before you run the server, incl. setting up the directory structure as described.

If that's already done, please list all steps you followed in your description.

Thanks!