Files
mapknitter/start.sh
2019-05-10 17:17:51 -05:00

14 lines
263 B
Bash
Executable File

#!/bin/bash -l
pidfile=/app/tmp/pids/server.pid
bundle check || bundle install
bower install --allow-root
if [ -f $pidfile ] ; then
>&2 echo 'Server PID file already exists. Removing it...';
rm $pidfile;
fi
bundle exec /usr/local/bundle/bin/passenger start