Sha256: 421ad93fdc42783cb4852bf91fedf666b23025ed4a3fae989893f13eeb2122d1

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

#!/bin/bash
set -e

# Figure out where this script is located.
SELFDIR="`dirname \"$0\"`"
SELFDIR="`cd \"$SELFDIR\" && pwd`"
cd $SELFDIR/lib/app/

## GEMFILE
if [ -f "$SELFDIR/lib/vendor/Gemfile" ]
then
  # Tell Bundler where the Gemfile and gems are.
  export BUNDLE_GEMFILE="$SELFDIR/lib/vendor/Gemfile"
  unset BUNDLE_IGNORE_CONFIG

  # Run the actual app using the bundled Ruby interpreter, with Bundler activated.
  if $2; then
    export RAILS_ENV=production
    exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "bin/rails" server
  else
    exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$1"
  fi
else
  exec "$SELFDIR/lib/ruby/bin/ruby" "$1"
fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rb2exe-0.1.60 bin/installer
rb2exe-0.1.58 bin/installer