Override the appdata resource at runtime

If you have changed the default application directory (known as "appdata") location, use this override method to specify it at runtime.

Override the res.appdata.path resource with the dispatcher override switch (-E).
For example, at the command line start the dispatcher as shown:

httpdispatch -E res.appdata.path=/work/tmp/gas/appdata

Important:

If you start the dispatcher with the -E option to override res.appdata.path, you must pass the same override to gasadmin gar so the archive is deployed to that overridden location.

For example, specify the same option with both commands:
  • Starting the dispatcher:

    httpdispatch -E res.appdata.path=/work/tmp/gas/appdata

  • Deploying the application:

    gasadmin gar -E res.appdata.path=/work/tmp/gas/appdata --deploy-archive myapp.gar