Closed abitrolly closed 3 years ago
The standalone server now answers the same HTML page for every request including static resources. Looks like a separate handler is needed to handle them.
Fixed loading static resources when running locally with python index.py
. Now it looks like this.
Tiles require setup for local Redis server, which I don't have at the moment.
Ping @Komzpa.
The map is still empty, and here is the stacktrace that is probably relevant that included redis.
File "index.py", line 40, in handler
resp, ctype, content = face_main(data)
File "index.py", line 634, in face_main
r.zincrby('locale:' + lang, i[0], i[1])
File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/client.py", line 2668, in zincrby
return self.execute_command('ZINCRBY', name, amount, value)
File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/client.py", line 875, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/connection.py", line 1185, in get_connection
connection.connect()
File "/home/anatoli/.local/share/virtualenvs/OpenStreetMap.by-MOXOekcf/lib/python2.7/site-packages/redis/connection.py", line 557, in connect
raise ConnectionError(self._error_message(e))
ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
looks this issue already fixed in master, so I will close it
I tried to run it locally to rebase my PR #6, and this is the list of everything I was missing to run
index.py
withoutImportError
s.