Running in non-dev envs. with script/runner shebang setup

All,

I have a script that runs script/runner via the shebang mechanism at the top o the file, like so:

#!/usr/bin/env ./script/runner

This works fine in development, how would I get it to run in non-development environments?

Thanks, Wes

$ script/runner -h

Usage: script/runner [options] ('Some.ruby(code)' or a filename)

     -e, --environment=name Specifies the environment for the runner to operate under (test/development/production).                                       Default: development

     -h, --help Show this help message. [..]

The -e option is probably what you are looking for.

PGP.sig (195 Bytes)