Skip to content

Instantly share code, notes, and snippets.

@ChrisMacNaughton
Last active August 29, 2015 13:56
Show Gist options
  • Save ChrisMacNaughton/9218430 to your computer and use it in GitHub Desktop.
Save ChrisMacNaughton/9218430 to your computer and use it in GitHub Desktop.
chef deploy symlinks
symlinks(
'.env' => '.env',
'system' => 'public/system',
'pids' => 'tmp/pids',
'log' => 'log',
'config/solr.yml' => 'config/solr.yml'
)
before_symlink do
script "asset_precompile" do
interpreter 'bash'
cwd release_path
user node[:tor_search][:user]
code "bundle exec rake assets:precompile --trace"
environment ({'RAILS_ENV' => node[:tor_search][:rails_env]})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment