I have followed this link to implement serving multiple tile styles from tile server. It says that I just need to update .xml style file path in renderd.conf file. But the openstreetmap carto recent 4.x releases requires specifying --style and --tag-transform-script(lua) during osm2pgsql data import. And if I do that, osm-bright tile serving is not working.
I tried -
sudo osm2pgsql --drop --hstore-all --slim -r pbf -C 32000 --style /data/
/styles/osm/openstreetmap-carto-master/openstreetmap-carto.style --tag-transform-script /data/
/styles/osm/openstreetmap-carto-master/openstreetmap-carto.lua --flat-nodes
node.cache --number-processes 8 -d gis -U root /data/nydata/new-york-latest.osm.pbf
After this, if I run-
renderd -f -c /usr/local/etc/renderd.conf
It is showing errors for osm-bright style because osm2pgsql query contains openstreetmap-carto.style instead of default.style(default.style is required for osm-bright).
So my question is what should be the correct osm2pgsql query for .pbf data import so that I can use same database for osm-bright and openstreetmap-carto styles both? Or What should be the steps to make a tile server that serves both openstreetmap-carto and osm-bright tiles?