Pak Profiles

Pak supports the definition of execution profiles. For example: debug, test or release profile. By defining an execution profile, a specific Pak configuration may be easily defined and enabled.

The Pak profile is defined via the profile property. This then selects collections of properties under the profiles property. For example: { "profile": "debug", "profiles": { "debug": { "import": true, }, "release": { "import": false, } } }

When the profile is set to debug, the properties under profiles.debug are logically copied to the top level of the pak.json properties. i.e. import is set to true.

Changing Profile

Use the pak profile MODE command to change the execution profile. For example:

pak profile debug

To display the current profile, run: pak profile

Other Applications

Other applications such as Expansive utilize the pak.json profile setting and modify their execution profile similarly. The ESP Web Framework also uses the profile setting.

© Embedthis Software. All rights reserved.