#!/bin/bash # Wait for Elasticsearch to start up sleep 30 bundler install yarn cache clean yarn install --network-concurrency 1 yarn install --check-files bundle exec rake tmp:create RAILS_ENV=${1:-development} bundle exec rake tmp:cache:clear RAILS_ENV=${1:-development} bundle exec rake webpacker:compile RAILS_ENV=production bundle exec rake kkuleomi:index:init RAILS_ENV=${1:-development} ./bin/update-all.sh ${1:-development} # Finally start the http server when the index is initialized bundle exec thin start -p 5000