Working cookbook for dashing
https://github.com/benbria/dashing-chef
First you need to install RVM. This installs sitewide as root, which really is a bad idea unless no one else uses this machine.
sudo apt-get update; apt-get install curl -y
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
\curl -sSL https://get.rvm.io | sudo bash
source /usr/local/rvm/scripts/rvm
rvm install 1.9.3-p551 --binary --max-time 20
rvm use 1.9.3-p551
#gem install bundler
#gem install dashing
In your runlist, add the following, (where acme-dashing is the name of your wrapper cookbook)
{
"name": "dashing",
"description": "Manages dashing site",
"json_class": "Chef::Role",
"default_attributes": {
"dashing": {
"ruby_env": "source /etc/profile.d/rvm.sh && rvm use ruby-1.9.3-p551 && gem install bundler && gem install dashing",
"js_env": "source /usr/local/src/nvm/nvm.sh && nvm use v0.8.16"
}
},
"override_attributes": {
},
"chef_type": "role",
"run_list": [
"recipe[apt]",
"recipe[nodejs]",
"recipe[acme-dashing]"
],
"env_run_lists": {
}
}
Additional information
Note, this doesn't always start the service automatically. Not sure why that is.
Watch for errors that stream by