Skip to content

Commit

Permalink
Delete files in :shared_files before creating a symlink (fixes #452)
Browse files Browse the repository at this point in the history
:shared_files like database.yml / secrets.yml are often checked in the repo for development and should be overwritten by the link to the shared file under mina deployment.
  • Loading branch information
ralfebert committed Oct 14, 2016
1 parent 436b549 commit 0146476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/mina/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
end

fetch(:shared_files, []).each do |linked_path|
command %{rm -f "./#{linked_path}"}
command %{ln -s "#{fetch(:shared_path)}/#{linked_path}" "./#{linked_path}"}
end
end
Expand Down

0 comments on commit 0146476

Please sign in to comment.