/chef_passenger_ubuntu

Chef cookbooks to create vm with ruby, rvm, passenger, postgresql and your rails webapp

Primary LanguageRuby

passenger_ubuntu

Run on localhost VM

cd ~/learn-chef/cookbooks
git clone https://github.com/Matho/chef_passenger_ubuntu.git
cd ~/learn-chef/cookbooks/passenger_ubuntu

Show status of your VM

kitchen list

Create virtual machine for kitchen

kitchen create

Apply the cookbook to ubuntu virtual machine

kitchen converge

Login to your vm, if you want to check changes

kitchen login

Show your deployed webapp. Open this ip in your browser. You should see your rails app

192.168.34.34

Cleaning

If you want to clean your vm

kitchen destroy

Bugs

  • sudo recipes make problems
  • create default ruby not working, problems with rvm running in non interactive shell?