/rails-passenger-cookbook

Simple Chef cookbook for Rails app depolyed with phusion passenger

Primary LanguageRuby

What's include:

  • A deployer user with sudo enabled
  • Nginx compied with passenger support
  • Postgresql
  • Postfix
# Install knife-solo and berkshelf
gem install knife-solo berkshelf
# Install Chef in server
knife solo prepare username@remote_ip_address

After knife solo prepare successed you'd better upload your public key to server due to a bug in knife solo (matschaffer/knife-solo#365)

See here for how to upload public key: http://linode.com/docs/security/use-public-key-authentication-with-ssh

# Provision the server with cookbooks
knife solo cook username@remote_ip_address