Skip to content

Commit 8dc73e8

Browse files
committed
Read env variable THEMEPARK_DEBUG to set debug mode
1 parent 8fdff01 commit 8dc73e8

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

config/experimental.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
local themepark = require('themepark')
1010

11-
themepark.debug = false
11+
-- For debug mode set this or the environment variable THEMEPARK_DEBUG.
12+
--themepark.debug = true
1213

1314
-- ---------------------------------------------------------------------------
1415

config/generic.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
local themepark = require('themepark')
1010

11-
themepark.debug = false
11+
-- For debug mode set this or the environment variable THEMEPARK_DEBUG.
12+
--themepark.debug = true
1213

1314
-- ---------------------------------------------------------------------------
1415

config/nwr.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
local themepark = require('themepark')
1010

11-
themepark.debug = false
11+
-- For debug mode set this or the environment variable THEMEPARK_DEBUG.
12+
--themepark.debug = true
1213

1314
-- ---------------------------------------------------------------------------
1415

config/protected_areas.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
local themepark = require('themepark')
1010

11-
themepark.debug = true
11+
-- For debug mode set this or the environment variable THEMEPARK_DEBUG.
12+
--themepark.debug = true
1213

1314
themepark:set_option('srid', 4326)
1415
themepark:set_option('tags', 'all_tags')

config/shortbread.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ local TAGINFO = false
1616

1717
local themepark = require('themepark')
1818

19-
themepark.debug = false
19+
-- For debug mode set this or the environment variable THEMEPARK_DEBUG.
20+
--themepark.debug = true
2021

2122
-- Add JSONB column `tags` with original OSM tags in debug mode
2223
themepark:set_option('tags', 'all_tags')

config/shortbread_gen.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ local TILEKILN = false
1515

1616
local themepark = require('themepark')
1717

18-
themepark.debug = false
18+
-- For debug mode set this or the environment variable THEMEPARK_DEBUG.
19+
--themepark.debug = true
1920

2021
-- Add JSONB column `tags` with original OSM tags in debug mode
2122
themepark:set_option('tags', 'all_tags')

lua/themepark.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ local themepark = {
6262
},
6363
}
6464

65+
if os.getenv('THEMEPARK_DEBUG') then
66+
themepark.debug = true
67+
end
68+
6569
themepark.theme_path = { script_path(3) .. '../themes/', themepark.dir .. 'themes/' }
6670

6771
-- ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)