Skip to content

Commit

Permalink
Rebuild css on container boot if PWP__THEME is set
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Dec 17, 2024
1 parent 990e8ea commit 5ce854f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions containers/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ then
bundle exec rails assets:precompile
fi

if [ -n "$PWP__THEME" ]; then
echo "Password Pusher: Rebuilding CSS for custom theme..."
yarn build:css
fi

echo "Password Pusher: starting puma webserver..."
bundle exec puma -C config/puma.rb

Expand Down

0 comments on commit 5ce854f

Please sign in to comment.