Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository does not get deployed automatically #1

Open
AltNico opened this issue Dec 15, 2017 · 6 comments
Open

Repository does not get deployed automatically #1

AltNico opened this issue Dec 15, 2017 · 6 comments

Comments

@AltNico
Copy link

AltNico commented Dec 15, 2017

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
Copy link
Member

pantierra commented Dec 15, 2017

How often does the MapaNica server gets updated?

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

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
Copy link
Member

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
Copy link
Member

ialokim commented Jan 6, 2019

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
Copy link
Author

AltNico commented Jan 6, 2019

@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
Copy link
Member

ialokim commented Jan 6, 2019

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
Copy link
Author

AltNico commented Jan 7, 2019

@ialokim Good argument. I reset my changes.

@pantierra pantierra removed their assignment Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants