Skip to content

Instantly share code, notes, and snippets.

@jorgedjr21
Created September 29, 2019 03:36
Show Gist options
  • Save jorgedjr21/eca1e129dd175d36484c2023f7aee0be to your computer and use it in GitHub Desktop.
Save jorgedjr21/eca1e129dd175d36484c2023f7aee0be to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
# Remove a potentially pre-existing server.pid for Rails.
rm -f /myapp/tmp/pids/server.pid
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment