Skip to content

Archive Trac wrapanapp

madscatt edited this page Jun 20, 2026 · 1 revision

Wrap an Application

Legacy Trac archive page imported from wrapanapp. Source: https://genapp.rocks/wiki/wiki/wrapanapp. Active canonical page: Wrap-an-Application. Review age, links, and examples before treating as current.

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 $ genapp.pl
    • html output should be available via web interface
    • eg
    • 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
#!/bin/bash

export MY_NEEDED_ENVIRONMENT=WHAT_I_NEED

exec `dirname $0`/module_run "$@"
  • any environment exported in the above bash shell will be available to the running module

Clone this wiki locally