hashicorp / otto-getting-started

The repository used for Otto getting started guide.
26 stars 25 forks source link

Missing Appfile #6

Open heathflohre opened 8 years ago

heathflohre commented 8 years ago

Ran compile after install on a Mac, and got to error

==> Loading Appfile... ==> No Appfile found! Detecting project information... No Appfile was found. If there is no Appfile, Otto will do its best to detect the type of application this is and set reasonable defaults. This is a good way to get started with Otto, but over time we recommend writing a real Appfile since this will allow more complex customizations, the ability to reference dependencies, versioning, and more.

sethvargo commented 8 years ago

Hi @heathflohre

What version of Otto are you using?

heathflohre commented 8 years ago

0.1.2

sethvargo commented 8 years ago

Hi @heathflohre

I just tried with Otto 0.1.2, and, while I get that error message, it compiles as expected:

$ otto compile
==> Loading Appfile...
==> No Appfile found! Detecting project information...
    No Appfile was found. If there is no Appfile, Otto will do its best
    to detect the type of application this is and set reasonable defaults.
    This is a good way to get started with Otto, but over time we recommend
    writing a real Appfile since this will allow more complex customizations,
    the ability to reference dependencies, versioning, and more.
==> Fetching all Appfile dependencies...
==> Compiling...
    Application:    otto-getting-started (ruby)
    Project:        otto-getting-started
    Infrastructure: aws (simple)

    Compiling infra...
    Compiling foundation: consul
==> Compiling main application...
==> Compilation success!
    This means that Otto is now ready to start a development environment,
    deploy this application, build the supporting infrastructure, and
    more. See the help for more information.

    Supporting files to enable Otto to manage your application from
    development to deployment have been placed in the output directory.
    These files can be manually inspected to determine what Otto will do.

The point of not having an Appfile is to showcase that Otto can automatically detect your requirements based off of extension.

heathflohre commented 8 years ago

Well, the app wasn't functioning in a browser at the given IP, so I thought it was an Appfile issue.