github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/website/source/docs/appfile/app.html.md (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Application - Appfile"
     4  sidebar_current: "docs-appfile-app"
     5  description: |-
     6    The application configuration tells Otto the name of your
     7    application, the type, and any dependencies it may have.
     8  ---
     9  
    10  # Application Configuration
    11  
    12  The application configuration tells Otto the name of your
    13  application, the type, and any dependencies it may have.
    14  
    15  This page assumes you're familiar with the
    16  [Appfile syntax](/docs/appfile/syntax.html) already.
    17  
    18  ## Example
    19  
    20  The application configuration looks like the following:
    21  
    22  ```
    23  application {
    24      name = "my-app"
    25      type = "ruby"
    26  }
    27  ```
    28  
    29  ## Description
    30  
    31  The `application` block tells Otto about the application that the
    32  Appfile describes. Only one application block can exist in an Appfile.
    33  
    34  More fine-grained configuration of the application is done using
    35  [customization](/docs/appfile/customization.html) blocks.
    36  
    37  The `application` block allows the following keys to be set:
    38  
    39    * `name` (string) - The name of the application. This doesn't have
    40        to be unique across all your other apps. This will be used for
    41        service discovery.
    42  
    43    * `type` (string) - The type of the application. The list of types
    44        is available in the [app types](/docs/apps) section.
    45  
    46  -------------
    47  
    48  Within a resource, you can specify zero or more **dependencies**.
    49  
    50  Within the dependency, the following keys are allowed:
    51  
    52    * `source` (string) - The URL of the dependency. The full list of
    53        acceptable URL types is documented on the
    54        [dependency sources](/docs/appfile/dep-sources.html) page.
    55  
    56  ## Syntax
    57  
    58  The full syntax is:
    59  
    60  ```
    61  application {
    62  	name = NAME
    63  	type = TYPE
    64  
    65  	[DEPENDENCY ...]
    66  }
    67  ```
    68  
    69  where `DEPENDENCY` is:
    70  
    71  ```
    72  dependency {
    73  	source = SOURCE
    74  }
    75  ```