Skip to content

Commit a4e3ec1

Browse files
stevepolitodesignseanpdoyle
authored andcommitted
Build assets during setup (#16)
There appears to be a [bug][1] with tailwindcss-rails, or possibly Rails, that is affecting how assets are precompiled on a cloned repository. Prior to this commit, we would get the following error after cloning the repo and running the test suite: ```text ActionView::Template::Error: The asset 'tailwind.css' was not found in the load path. ``` One solution is to run `test:prepare` in the setup script which will generate the assets. There is an [open pull request][2] against Rails that would introduce this change based on [similar feedback][3] [1]: rails/tailwindcss-rails#158 [2]: rails/rails#47719 [3]: rails/rails#47210 (comment)
1 parent 2598f5d commit a4e3ec1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: bin/setup

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ FileUtils.chdir APP_ROOT do
3737
puts "\n== Removing old logs and tempfiles =="
3838
system! "bin/rails log:clear tmp:clear"
3939

40+
puts "\n== Setup test environment =="
41+
system! "bin/rails test:prepare"
42+
4043
puts "\n== Restarting application server =="
4144
system! "bin/rails restart"
4245
end

0 commit comments

Comments
 (0)