#!/bin/bash

set -e

# printenv >> /etc/environment

echo "starting jobs..."
# bin/jobs start
bundle exec bin/delayed_job run

# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"
