An open API service indexing awesome lists of open source software.

https://github.com/brettswift/vagrant-nodejsserver


https://github.com/brettswift/vagrant-nodejsserver

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

Vagrant Nodejs Server
=====================

This project bootstraps a Vagrant box with Puppet and Puppet-librarian.

It wraps the brettswift/nodesite puppet module which deploys and configures a nodejs application on a specified version of nodejs.

The nodejs application is configured simply with:

* the git URI
* branch/tag (default: master)
* file to start your web app (default app.js)

###configuration###
`db_connection_string` is passed into the yaml_entries of nodesite. This is the only way to connect uptime to the database currently. Authentication between how mongo is configued via the puppetlabs-mongodb module, and how uptime connects, is not functional.

Run: `vagrant up` and you will have a running nodejs application in under 4 minutes mapped to `http://localhost:8082`.

By default, this is conifigured to run my feature branch of [Uptime](http://redotheweb.com/uptime) hosted on github https://github.com/brettswift/uptime

Git deploys are also enabled by default. The nodesite module will check for upstream changes on each puppet run. If there are any it will run a `git pull`, `npm prune`, `npm install` and restart the service.

Project Structure
-----------------
* `manifests/site.pp` node classification
* `site` local module code
* `modules` installed by librarian-puppet
* `shell` bootstrap provisioners.
* so you can use a clean base vagrant box that doesn't have puppet if you want