Skip to content

Very Rough Work Workflow Wiki

mgifford edited this page Oct 17, 2012 · 19 revisions

Starting docs

First Make sure you're using the right version of Ruby

  1. Set up RVM $ curl -L get.rvm.io | bash -s 1.15.8

$ rvm reload

  1. Make sure you are running the right version of ruby $ ruby -v

$ rvm use ruby-1.9.3-p194

Make sure you've got the right gem's in your ruby instance

$ gem install knife-solo

Check that it's good:

$ knife -v

Make sure you've got knife set up properly

  • Set up knife defaults $ knife configure -r . --defaults

  • Set up knife demo $ knife kitchen solodemo

    $ cd solodemo/

    $ knife cookbook create nginx -o cookbooks

    $ cd cookbooks/nginx/recipes

    $ vi default.rb

    $ vi solodemo/nodes/example.com

    Json file with recepes:

    { "run_list": ["recipe[git]"] }

    $ knife prepare -i ~/.ssh/OpenConcept.pem [email protected]

    $ knife cook -i ~/.ssh/OpenConcept.pem [email protected]

    $ git clone https://github.com/opscode-cookbooks/git.git

    $ vi nodes/example.com

    $ knife cook -i ~/.ssh/OpenConcept.pem [email protected]

    $ knife washup -i ~/.ssh/OpenConcept.pem [email protected]


First Time (old)

  1. Set up RVM $ curl -L get.rvm.io | bash -s 1.15.8

$ rvm reload

  1. Clone git repo for ariadne
  2. From the ariadne directory use Rake to setup commands.
  3. Start VirtualBox, do vagrant up & vagrant ssh
  4. Verify you can view the site at http://???.dev
  5. At the end logout of your vagrant terminal and do vagrant destroy

Every Time

  1. Change into the ariadne directory from the command line (something will automatically run if you've done it right).
  2. Login server with vagrant ssh and do required development
  3. How is the filesystem/db saved between uses?
  4. Access the site using http://??.dev
  5. At the end logout of your vagrant terminal and do vagrant destroy

To add to recipes

To export to EC2

To Export to Rackspace

To Export to dedicated server