Skip to content

Archive Trac demo app appendix new html5 from existing

madscatt edited this page Jun 20, 2026 · 1 revision

Demo App Appendix New HTML5 From Existing

Legacy Trac archive page imported from demo_app_appendix_new_html5_from_existing. Source: https://genapp.rocks/wiki/wiki/demo_app_appendix_new_html5_from_existing. Review age, links, and examples before treating as current.

5. Appendix

1. Creating a new html5 application from an existing one

  • Basic steps:

    1. Given a application, copy its contents into a new directory.
    2. Edit directives.json and replace all mentions of the previous application path with the new directory
    3. run {{{$GENAPP/sbin/htmlsetuppaths.pl}}}
    4. run {{{genapp}}}
  • Example:

    • suppose you wanted to make a new application mydemo from the demo application installed in /opt/genapp/demo
    1. copy
    • change to the directory
cd /opt/genapp
- make a deep copy
cp -r demo mydemo
  1. edit the directives file with your favorite editor and mass replace demo with mydemo - change to the new directory
cd mydemo
- use your favorite editor to mass replace demo with mydemo (in this example, with vi)
vi directives.json
  1. setup the paths for the webserver
$GENAPP/sbin/htmlsetuppaths.pl
  1. regenerate the application
genapp
  • your new web site should now be available

Up

Clone this wiki locally