Skip to content

Commit 1adba3a

Browse files
authored
Fix Sprockets::ArgumentError during deployment (#14)
To avoid error: > Sprockets::ArgumentError: link_tree argument must be a directory. This should add the pattern like this: ``` /app/assets/builds/* !/app/assets/builds/.keep ``` The same pattern as the one in default .gitignore file generated by rails: ``` # Ignore all logfiles and tempfiles. /log/* /tmp/* !/log/.keep !/tmp/.keep ```
1 parent 9b3b7ea commit 1adba3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/install/install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
gsub_file "app/assets/config/manifest.js", "//= link_directory ../stylesheets .css", ""
88

99
if Rails.root.join(".gitignore").exist?
10-
append_to_file(".gitignore", %(/app/assets/builds\n!/app/assets/builds/.keep\n))
10+
append_to_file(".gitignore", %(/app/assets/builds/*\n!/app/assets/builds/.keep\n))
1111
end
1212

1313
say "Remove app/assets/stylesheets/application.css so build output can take over"

0 commit comments

Comments
 (0)