#!/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