extremely basic instructions to wrap an application

  • from your base directory
    • edit directives.json
    • edit menu.json
    • edit modules/*.json
    • create application executable json wrappers in bin/
      • NB: executable must only output valid json to stdout
    • run $
    • html output should be available via web interface
    • if you get forbidden errors in the web browser, make sure everything is group readable by user apache

additional notes

  • if you executable needs special environment variables, you can further wrap it via a bash script where you set these
  • e.g. suppose your module is called module
    • rename your bin/module to bin/module_run
    • create bin/module containing
      exec `dirname $0`/module_run "$@"
    • any environment exported in the above bash shell will be available to the running module

Last modified 3 years ago Last modified on Sep 28, 2015, 11:39:03 AM