Files
standardnotes-app-web/docker/entrypoint
oldjamey a880f6541e Fix Docker restart issue
added line in docker/entrypoint that enables clean restarting of the application without causing a boot loop
2018-09-04 15:01:23 -07:00

20 lines
377 B
Bash
Executable File

#!/usr/bin/env sh
# $0 is a script name,
# $1, $2, $3 etc are passed arguments
# $1 is our command
CMD=$1
case "$CMD" in
'start' )
echo `pwd`
rm -f /app/tmp/pids/server.pid
bundle exec rails s -b 0.0.0.0
;;
* )
# Run custom command. Thanks to this line we can still use
# "docker run our_image /bin/sh" and it will work
exec "$@"
;;
esac