Skip to content

Commit bd02e62

Browse files
committed
Insert HSL zones in startup script
1 parent d9b40d8 commit bd02e62

File tree

2 files changed

+298
-0
lines changed

2 files changed

+298
-0
lines changed

development.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ generate_jooq() {
179179
mvn clean generate-sources -Pci
180180
}
181181

182+
upload_zones() {
183+
echo "Uploading municipality and fare zones to Tiamat"
184+
185+
curl --silent --output /dev/null --show-error --fail -X POST -H"Content-Type: application/xml" -d @netex/hsl-zones-netex.xml localhost:3010/services/stop_places/netex
186+
}
187+
182188
### Control flow
183189

184190
COMMAND=${1:-}
@@ -192,11 +198,13 @@ case $COMMAND in
192198
start)
193199
download_docker_compose_bundle
194200
start_all
201+
upload_zones
195202
;;
196203

197204
start:deps)
198205
download_docker_compose_bundle
199206
start_deps
207+
upload_zones
200208
;;
201209

202210
generate:jooq)
@@ -215,6 +223,7 @@ case $COMMAND in
215223
recreate)
216224
remove
217225
start_deps
226+
upload_zones
218227
;;
219228

220229
list)

0 commit comments

Comments
 (0)