diff --git a/hyrax/docker-entrypoint.sh b/hyrax/docker-entrypoint.sh index a2f1e61d3492fd9a7878f9e836bdc81ff4894025..9c53001b69104f63869bbdae8013454e2559b6d3 100644 --- a/hyrax/docker-entrypoint.sh +++ b/hyrax/docker-entrypoint.sh @@ -11,6 +11,14 @@ else bundle check || bundle install --without production fi +if [ ! -f "/data/yarn.lock" ]; then + yarn install +fi + +if [ ! -d "/data/public/uv" ]; then + bundle exec rake assets:clean assets:precompile +fi + ## Run any pending migrations, if the database exists ## If not setup the database bundle exec rake db:exists && bundle exec rake db:migrate || bundle exec rake db:setup