rails server will not start in container because the server is already running

You can remove .pid before running server, add to docker-compose some script before firing up server:

command: bash -c bin/start.sh

File: bin/start.sh

rm -f tmp/pids/server.pid
exec bundle exec rails s -b

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top