Much like Heroku, Vektra uses an app.json
file as a manifest for describing
your apps.
{
"name": "example"
"routes": {
"web": [
{ "path": "example" }
]
}
}
(string, optional) A clean and simple name to identify the app (30 characters max).
{
"name": "example"
}
(object, optional) A key-value object for process routes. Keys are process names. Values are arrays containing key-value objects for routes that should map to that process. The key-value route object may define keys:
path
: (string, optional)subdomain
: (string, optional)
If only a path
is supplied then your app will be available at that path. So
in the example below our app will be available at ourdomain.com/example
.
{
"routes": {
"web": [
{ "path": "example" }
]
}
}
If only a subdomain
is supplied then your app will be available at that
subdomain. So in the example below our app will be available at
example.ourdomain.com
.
{
"routes": {
"web": [
{ "subdomain": "example" }
]
}
}
If path
and subdomain
are both supplied for a route they will be used in
conjunction. So in the example below our app will be available at
example.ourdomain.com/example
.
{
"routes": {
"web": [
{ "path": "example", "subdomain": "example" }
]
}
}