This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
docker-standardnotes/docker/entrypoint

19 lines
327 B
Bash
Executable File

#!/usr/bin/env sh
CMD=$1
case "$CMD" in
'start' )
echo `pwd`
rm -f /data/src/tmp/pids/server.pid
cd /standardnotes/
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/bash" and it will work
exec "$@"
;;
esac