You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current setup requires the manual reconfiguration of nginx, because the (re)started docker container will have a new IP address everytime => currently requires manual effort for initial load and restart. This needs to be fully automated.
Expected behavior
Building the graph and starting nginx is one single command.
Rebuilding the graph can be done from the client command line (rather than entering the full docker command on the server)
Nginx is automatically (re)configured/reloaded so it catches the new IP address of the restarted docker container
Command lines
# server, specify as many --urls as you want, add multiple options in quotes
server$ /path/to/script/loaddata --url <url> --options <options>
# client
client$ fab loaddata:server=<fabric role>,urls=<url1 for gtfs file[,url2[, ...]]>,options=<options>
Implementation notes
the fabric command shall be implemented as simple wrapper to call some server-side script(s), so actually the fabfile.py will (almost) be as simple as e.g.
@task
def loaddata(server,urls,options):
# figure out the host to run on
# see http://stackoverflow.com/a/6313237/890242
# need to pass on options
run('/path/to/serverside/script/loaddata`)
The rationale for the above is such that we can easily implement server side processes using the very same commands, e.g. scheduled reloading once a day etc.
The text was updated successfully, but these errors were encountered:
miraculixx
changed the title
Improve automated loading of data files and restarting otp server
Improve automated loading of data files and (re)starting otp server
Feb 19, 2015
The current setup requires the manual reconfiguration of nginx, because the (re)started docker container will have a new IP address everytime => currently requires manual effort for initial load and restart. This needs to be fully automated.
Expected behavior
Command lines
Implementation notes
The text was updated successfully, but these errors were encountered: