This repo has everything you need to start your Sinatra project off on the right foot.
This quickstart comes with:
- Unicorn for the web server
- Grunt.js for some misc tasks
- HTML5 Boilerplate
Included are some rake tasks to get you started. All the configs for this are in unicorn.rb
rake unicorn:start
: start the unicorn serverrake unicorn:stop
: stop the unicorn serverrake unicorn:restart
: restart the unicorn serverrake unicorn:increment
: add workersrake unicorn:decrement
: remove workersrake unicorn:tree
: show the unicorn process tree
Also included are some Grunt.js tasks:
grunt build
: minify all the javascript intoapplication.min.js
There's a helper configured that will load application.min.js
instead of the individual JS files on a production environment.