A sweet Rails stack – using Sprinkle.
Warning: Don’t try this at home yet, still work-in-progress (~90%).
The default stack that will be installed/configured:
Lang: Ruby/RVM (REE + 1.9.2 + Rubygems + Bundler)
App-server: Passenger
Web-server: Nginx
Mail-server: Postfix
Database: PostgreSQL (optional: MySQL, SQLite3)
Monitoring: Monit
HTTP-proxy: Varnish
Cache: Memcached
Security: Fail2ban, IP-tables/ufw, SSH-settings
SCM: Git
Shell: ZSH (oh-my-zsh)
Tools: ntp, screen, curl, vim, htop, imagemagick
Misc: logrotation of above (logrotate), default deploy user, default dotfiles
It’s trivial to customize this, see Advanced usage.
- Debian-compatible systems should work, even though it has yet only been tested with Ubuntu 10.10.
$ cd my_app $ git clone git://github.com/grimen/sprinkle-stack.git config/stack
$ gem install sprinkle
Capistrano-way:
Ensure you have specified your server host in config/deploy.rb
:
role :app, "example.com" # ...or IP
Vanilla-way:
Nothing, see below.
Capistrano-way:
$ sprinkle -c -s config/stack/setup.rb
Vanilla-way:
$ sprinkle -c -s config/stack/setup.rb HOST
…where HOST
is the remote server’s domain or IP.
You will be queried a few options in the process, but other than that you are done.
Optional: DJ Tïesto – Sparkles
TODO
See TODO
Released under the MIT license.
Copyright © Jonas Grimfelt