Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created November 11, 2012 02:39
Show Gist options
  • Select an option

  • Save lazypower/4053456 to your computer and use it in GitHub Desktop.

Select an option

Save lazypower/4053456 to your computer and use it in GitHub Desktop.
Sample Chef configuration snippet
execute "rake db:setup" do
environment ({'RAILS_ENV' => 'production'})
command "cd #{node[:fatfree][:dir]}; rake db:setup; touch .db-created"
creates "#{node[:fatfree][:dir]}/.db-created"
action :run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment