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
{{ message }}
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
I added HTTP support to MOE for the --project_config and --db paths.
With this patch, you can now do stuff like:
java -jar moe.jar check_config --config_file http://server/project_config
This patch makes it so a company can use a simple REST API internally for
maintaining projects, and not have to worry about everything necessarily being
on NFS. It is backward compatible with old usage: if a path is given (without a
file:// or http:// scheme specifier), it will assume it is a file.
Here is the patch: https://gist.github.com/1158363
Additionally, I wrote two quick Python scripts for testing and/or reference for
this new feature.
I wrote a tiny example HTTP server:
* https://gist.github.com/1158377
moe_config_server.py is a simple example server that implements the
REST api just mentioned. It takes a single argument, which is the port it will
run on (defaults to 8080). It serves up "./projects/[project_name]/config.js"
and "./projects/[project_name]/moe.db"
To make calling MOE repeatedly, I wrote a tiny wrapper Python script:
* https://gist.github.com/1158379
moe.py wraps around the main MOE adding arguments based on what it finds in a
JSON file, "~/.moerc". This saves the user from having to type --test_config
and --db with every call, and works with the above example server. With moe.py,
you can just do commands like "moe.py project_name check_config"
Original issue reported on code.google.com by [email protected] on 23 Aug 2011 at 9:29
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 23 Aug 2011 at 9:29The text was updated successfully, but these errors were encountered: