Skip to content

Settings

Gianluca Costa edited this page Apr 11, 2016 · 6 revisions

MoonDeploy's per-user settings can be changed by creating a file having the following path:

HOME_DIRECTORY/.moondeploy.json

It should follow the standard JSON format, having this structure:

{
  "LocalDirectory": "Path to the local dir",
  "BufferSize": 1048576,
  "LoggingLevel": "INFO",
  "SkipAppOutput": false,
  "BackgroundColor": 195,
  "ForegroundColor": 22
}

Of course, the items can appear in any order and any of them can be missing.

Generally speaking, you should only consider:

  • SkipAppOutput: if set to true, will prevent MoonDeploy from capturing the output of the launched application. The default is false, so failures while the application loads will be captured and printed out. You might want to set it to true when running very verbose applications.

The other parameters should only be changed in particular situations:

  • LocalDirectory: overrides the default local directory - which contains the apps and logs subdirectories. Defaults to USER_DIRECTORY/MoonDeploy.

  • BufferSize: is the size in bytes of the buffer employed while performing I/O and network operations - the default is 1048576 - that is, 1 MB.

  • LoggingLevel: can be used to filter the log output. It can be debug, info, notice, warning, error or critical (case-insensitive); declaring a logging level will make MoonDeploy only print out messages having equal or more severe level. The default level is debug, which logs everything.

  • BackgroundColor and ForegroundColor: available for console-based interface only. Each of them is a value in the range [0; 255] referencing a color in the console palette. The default values are 195 and 22, respectively.

Clone this wiki locally