Last active
August 29, 2015 13:56
-
-
Save ChrisMacNaughton/9218430 to your computer and use it in GitHub Desktop.
chef deploy symlinks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symlinks( | |
'.env' => '.env', | |
'system' => 'public/system', | |
'pids' => 'tmp/pids', | |
'log' => 'log', | |
'config/solr.yml' => 'config/solr.yml' | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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