mapanica / datos

MIT License
0 stars 1 forks source link

Repository does not get deployed automatically #1

Open AltNico opened 6 years ago

AltNico commented 6 years ago

Three hours ago, @ialokim pushed a new GTFS of Estelí to this repository. Later I build scripts to automatically update navitia.mapanica.net but we realized that the GTFS from mapanica.net was outdated.

@xamanu How often does the MapaNica server gets updated?

As a temporary workaround I am now pulling directly from GitHub, but for api.navitia.io we should really fix this.

pantierra commented 6 years ago

How often does the MapaNica server gets updated?

Haha, every time I ssh into the server and execute git pull :wink:

Send me your public ssh keys per email and I add you to the authorized_keys.

Of course feel free to add any cronjob or similar there.

pantierra commented 6 years ago

In case you know about Docker setups, the best way would be to run periodic pulls with the setup https://github.com/mapanica/server this would allow us to keep all server config in described configuration

ialokim commented 5 years ago

Someone has been working on this feature? I've updated all of the tree GTFS files to be valid until 2023 (they would have expired within the next two months), but for the inclusion in Navitia, they have to be published under datos.mapanica.net.

AltNico commented 5 years ago

@ialokim No, so far not. But I just pushed the newest version and also updated the dates manually, which should be done in this repo:


diff --git a/index.html b/index.html
index 4bd2a6a..432e014 100644
--- a/index.html
+++ b/index.html
@@ -178,7 +178,7 @@
             <td>Managua y Ciudad Sandino (Urbanos)<br /><small>Extraído de OpenStreetMap.org</small></td>
             <td>
               <ul>
-                <li>[<a class="download-gtfs" href="/ni-managua-gtfs.zip">GTFS</a>] (15/12/2017)</li>
+                <li>[<a class="download-gtfs" href="/ni-managua-gtfs.zip">GTFS</a>] (06/01/2019)</li>
                 <li>[<a class="download-overpass" target="_blank" href="http://overpass-turbo.eu/s/dI4">Overpass API</a>]</li>
                 <li>[<a class="download-geojson" href="/mapanica-managua-tuc-2016-01-27.geojson.zip">GeoJSON</a>] (27/01/2016)</li>
                 <li>[<a class="download-shape" href="/mapanica-managua-tuc-2016-01-27.shp.zip">SHP</a>] (27/01/2016)</li>
@@ -189,7 +189,7 @@
             <td>Estelí (Urbanos)<br /><small>Extraído de OpenStreetMap.org</small></td>
             <td>
               <ul>
-                <li>[<a class="download-gtfs" href="/ni-esteli-gtfs.zip">GTFS</a>] (09/02/2010)</li>
+                <li>[<a class="download-gtfs" href="/ni-esteli-gtfs.zip">GTFS</a>] (06/01/2019)</li>
               </ul>
             </td>
           </tr>
@@ -197,7 +197,7 @@
             <td>Nicaragua (rutas nacionales)<br /><small>Extraído de OpenStreetMap.org</small></td>
             <td>
               <ul>
-                <li>[<a class="download-gtfs" href="/ni-gtfs.zip">GTFS</a>] (16/02/2018)</li>
+                <li>[<a class="download-gtfs" href="/ni-gtfs.zip">GTFS</a>] (06/01/2019)</li>
               </ul>
             </td>
           </tr>
ialokim commented 5 years ago

just pushed

Cool, many thanks!

updated the dates manually

Actually, I did not recreate the GTFS files using osm2gtfs, but I have just changed the end_dates manually inside the zip files (I was a bit scared of some changes at the OSM side which could lead to less routes added properly to the GTFS). So I would leave the dates on the website as they were before, because there was no real update to the data.

AltNico commented 5 years ago

@ialokim Good argument. I reset my changes.