@echo off cd /d "C:\\inetpub\baclight" call bundle check || call bundle install --jobs 4 :: Start background jobs (Solid Queue or similar) start /B bin/jobs start :: Start Rails server on the port provided by IIS call bundle exec rails server -p %HTTP_PLATFORM_PORT% -e production