ref: master
debian/noosfero-console
#!/bin/sh set -e environment="$1" test -z "$environment" && environment=production cd /usr/share/noosfero && su noosfero -c "rails console $environment"