Skip to content

Commit

Permalink
enhance this helper for building test assets (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Dec 7, 2023
1 parent 8246f3d commit c359f7c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/dashboard/bin/recompile_js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

export RAILS_ENV='development'
export RAILS_RELATIVE_URL_ROOT='/pun/dev/dashboard'
if [[ -n "$1" ]]; then
export RAILS_ENV='test'
export RAILS_RELATIVE_URL_ROOT='/'
else
export RAILS_ENV='development'
export RAILS_RELATIVE_URL_ROOT='/pun/dev/dashboard'
fi

bin/rails assets:clobber
bin/rails assets:precompile
Expand Down

0 comments on commit c359f7c

Please sign in to comment.