#!/bin/bash set -e export JETS_MEGA=1 # Figure out where this script is located. PROJECTDIR="`dirname \"$0\"`" PROJECTDIR="`cd \"$PROJECTDIR/..\" && pwd`" unset BUNDLE_IGNORE_CONFIG # When jets packages the app code it creates .bundle/config in the project root. # We want that to be used. # Drop a pidfile # echo $$ > /tmp/jets-rackup.pid # Run the actual app using the bundled Ruby interpreter, with Bundler activated. exec ruby -rbundler/setup bin/rackup.rb "$@"