20 lines
669 B
Bash
Executable File
20 lines
669 B
Bash
Executable File
#!/bin/bash -l
|
|
|
|
# default config values
|
|
PORT=3000
|
|
BUILD_NUMBER=`cat /var/lib/jam-web/BUILD_NUMBER`
|
|
|
|
|
|
CONFIG_FILE="/etc/jam-web/audiomixer-worker-upstart.conf"
|
|
if [ -e "$CONFIG_FILE" ]; then
|
|
. "$CONFIG_FILE"
|
|
fi
|
|
|
|
# I don't like doing this, but the next command (bundle exec) retouches/generates
|
|
# the gemfile. This unfortunately means the next debian update doesn't update this file.
|
|
# Ultimately this means an old Gemfile.lock is left behind for a new package,
|
|
# and bundle won't run because it thinks it has the wrong versions of gems
|
|
rm -f Gemfile.lock
|
|
|
|
RAILS_ENV=production BUILD_NUMBER=$BUILD_NUMBER QUEUE=audiomixer exec bundle exec rake environment resque:work
|