Step 4: Add Habitat to the application

Packaging System Demo

Everything Habitat needs to build and run the application is defined in a set of files known as the Habitat Plan, the most important of which is the file.

For the sake of this demo, the Habitat Plan files have been generated* for you under the /habitat directory. Have a quick look around, then we'll make one small change in order to build the application.

Open the file in your favorite editor and change the value of pkg_origin to the origin name you created earlier. Once you've saved that change, proceed to the next step.

*You can either write plan files from scratch or generate a basic set using the hab plan init command.

For languages where scaffoldingis available, such as node, hab plan init -s node will introspect the application and generate configuration files during build time.

CLI screenshot after running hab cli setup