my-boxen/modules/projects
2013-07-05 15:17:19 +01:00
..
manifests update puppet-boxen for projects::all action 💥 2012-10-07 14:58:24 -10:00
templates/shared Changing nginx template to use try_files 2013-07-05 15:17:19 +01:00
README.md Update line highlighting 2013-06-11 17:19:40 -03:00

Project Manifests

Project manifests live in modules/projects/manifests/$project.pp. A simple project manifest example:

class projects::trollin {
  include icu4c
  include phantomjs

  boxen::project { 'trollin':
    dotenv        => true,
    elasticsearch => true,
    mysql         => true,
    nginx         => true,
    redis         => true,
    ruby          => '1.9.3',
    source        => 'boxen/trollin'
  }
}

With the above, as long as our app is configured to listen on a socket at "#{ENV['BOXEN_SOCKET_DIR']}"/trollin, you'll now be able to run its local server and visit http://trollin.dev/ to access the app in dev.

Provide the full repository URL in the 'source' option when referencing code that is not hosted at github.com, such as Github Enterprise repositories.

For further documentation on how to use the boxen::project type, take a look at the documentation in the source.