-
Notifications
You must be signed in to change notification settings - Fork 0
Wrap an Application
madscatt edited this page Jun 20, 2026
·
3 revisions
- 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
- 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