Files on views/default folder not found
ruipoliveira opened this issue · comments
Start point: https://gtfstohtml.com/docs/quick-start#docker-usage
docker-compose up
Starting test_gtfs-to-html_1 ... done
Attaching to test_gtfs-to-html_1
gtfs-to-html_1 |
gtfs-to-html_1 | Starting GTFS import for 1 file using SQLite database at /tmp/gtfs
gtfs-to-html_1 | Downloading GTFS from http://www.bart.gov/dev/schedules/google_transit.zip
gtfs-to-html_1 | Download successful
gtfs-to-html_1 | Importing GTFS from /tmp/tmp-1-yoP1Hb6uDmir/gtfs.zip
gtfs-to-html_1 | Importing - agency.txt
gtfs-to-html_1 | Importing - agency.txt - 1 lines imported
gtfs-to-html_1 | Importing - attributions.txt - No file found
...
...
gtfs-to-html_1 | Warning:
gtfs-to-html_1 |
gtfs-to-html_1 | bart: Generating HTML timetables ============================------------ 84/120
gtfs-to-html_1 | Warning: ENOENT: no such file or directory, open 'views/default/timetablepage_full.pug'
gtfs-to-html_1 |
...
gtfs-to-html_1 | Warning:
gtfs-to-html_1 |
gtfs-to-html_1 | bart: Generating HTML timetables ======================================== 120/120
gtfs-to-html_1 | Error: ENOENT: no such file or directory, open 'views/default/overview_full.pug'
gtfs-to-html_1 | [ Error: no such file or directory, open 'views/default/overview_full.pug'
gtfs-to-html_1 | ] {
gtfs-to-html_1 | errno: -2,
gtfs-to-html_1 | syscall: 'open',
gtfs-to-html_1 | code: 'ENOENT',
gtfs-to-html_1 | path: 'views/default/overview_full.pug'
gtfs-to-html_1 | }
test_gtfs-to-html_1 exited with code 1
Thanks for reporting this issue.
Can you share with me the config.json file you are using with docker?
Hi brendannee,
Thanks for your reply.
I'm using the config-sample.json (https://github.com/BlinkTagInc/gtfs-to-html/blob/master/config-sample.json).
The "templatePath": "views/default"
is incorrect?
edited :
I changed for "templatePath": "/usr/local/lib/node_modules/gtfs-to-html/views/default/",
and works fine!
Yes - that was the issue!
I updated the documentation to include this key information: https://gtfstohtml.com/docs/quick-start#docker-usage