This function registers a Passenger application for an account.
Important:
uapi --output=jsonpretty \ --user=username \ PassengerApps \ register_application \ name='Name of Application' \ path='/slippers' \ domain='dorothy.com'
{- "apiversion": 3,
- "func": "register_application",
- "module": "PassengerApps",
- "result": {
- "data": {
- "Name of Application": {
- "base_uri": "/ruby",
- "deployment_mode": "production",
- "domain": "dorothy.com",
- "enabled": 1,
- "envvars": {
- "SHOES": "ruby",
- "TINMAN": "heart"
}, - "name": "Name of Application",
- "path": "/home/dorothy/slippers"
}
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}