The following error log is output when you try to start the server.
A server is already running. Check /app/tmp/pids/server.pid.
The cause is that the server.pid
file created when the Rails server was started last time remains.
When I looked it up on various sites, there should be three.
Reference: A server is already running Remedy [Rails]
Delete the /app/tmp/pids/server.pid
file each time an error occurs.
It's a surefire way, but it's a hassle ...
I think this is the easiest way.
Set the ** command
** part of the docker-compose.yml
file as follows.
docker-compose.yml
command: bash -c "rm -f tmp/pids/server.pid ; bundle exec rails s -p 3000 -b 0.0.0.0"
Recommended Posts