Files
snibox-sqlite/entrypoint.sh
2021-03-17 17:47:01 +11:00

17 lines
239 B
Bash

#!/bin/bash
DATABASE=${DATABASE:-db/database/snibox.sqlite3}
if [ -f /app/tmp/pids/server.pid ]
then
rm -f /app/tmp/pids/server.pid
fi
cd /app
if [ ! -f $DATABASE ]
then
rake 'db:migrate'
fi
bundle exec rails server -b 0.0.0.0