File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/ndr_dev_support/capistrano Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44 task :configure_assets do
55 asset_script = fetch ( :asset_script , <<~SHELL )
66 set -e
7- ruby -ryaml - e "puts YAML.dump('production' => { 'secret_key_base' => 'compile_me' })" > config/secrets.yml
8- ruby -ryaml - e "puts YAML.dump('production' => { 'adapter' => 'placeholder' })" > config/database.yml
7+ ruby -e "require 'yaml'; puts YAML.dump('production' => { 'secret_key_base' => 'compile_me' })" > config/secrets.yml
8+ ruby -e "require 'yaml'; puts YAML.dump('production' => { 'adapter' => 'placeholder' })" > config/database.yml
99 RAILS_ENV=production bundle exec rake assets:clobber assets:precompile
1010 rm config/secrets.yml config/database.yml
1111 SHELL
Original file line number Diff line number Diff line change 173173end
174174
175175def release_config_for ( env )
176- branches = YAML . load_file ( ' config/deployments.yml' )
176+ branches = YAML . safe_load_file ( " config/deployments.yml" , permitted_classes : [ Date ] )
177177 branches . fetch ( env . to_s ) { raise 'Unknown release branch!' }
178178end
179179
You can’t perform that action at this time.
0 commit comments