# Loomio — Notes ## Custom startup command must reproduce ENTRYPOINT setup steps Loomio's Docker image uses `docker_start.sh` as its ENTRYPOINT, which copies `client3-build/` → `public/client3/` before starting Rails. Overriding the entrypoint with a direct Rails command skips this step, leaving `client3/` unpopulated and causing 500 errors on all routes serving the SPA. **Fix**: reproduce the copy step explicitly in the deployment `command:`: ```yaml command: ["/bin/bash", "-c"] args: - | set -e mkdir -p /loomio/public/client3 cp -r /loomio/client3-build/* /loomio/public/client3/ bundle exec rake db:migrate db:seed bundle exec thrust puma -C config/puma.rb ``` **General rule**: whenever you override `command:`, inspect the image's `ENTRYPOINT`/`CMD` (via `docker inspect` or the Dockerfile) and reproduce any required setup steps.