ToolJet/docker/entrypoints/server.sh
Ashish 6346e78820
Chore: fix server dockerfile (#307)
* fix typo in entrypoint script invocation from the server dockerfile

* use sh in the entrypoint shebang instead of bash

* make entrypoint script executable
2021-06-24 16:40:26 +05:30

11 lines
155 B
Bash
Executable file

#!/bin/sh
set -e
bundle check || bundle install
rake db:create
rake db:migrate
if [ -e tmp/pids/server.pid ]; then
rm tmp/pids/server.pid
fi
exec "$@"