Created
February 28, 2011 19:10
-
-
Save tobias/847830 to your computer and use it in GitHub Desktop.
TorqueBox jruby/gem debug script. Run from the app root.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/echo -n 'pwd: ' | |
pwd | |
/bin/echo | |
/bin/echo '>>> environment <<<' | |
/bin/echo | |
/bin/echo -n '$TORQUEBOX_HOME: ' | |
/bin/echo $TORQUEBOX_HOME | |
/bin/echo -n '$JBOSS_HOME: ' | |
/bin/echo $JBOSS_HOME | |
/bin/echo -n '$JRUBY_HOME: ' | |
/bin/echo $JRUBY_HOME | |
/bin/echo -n '$GEM_HOME: ' | |
/bin/echo $GEM_HOME | |
/bin/echo | |
/bin/echo '>>> bundler <<<' | |
/bin/echo | |
/bin/echo '~/.bundle/config:' | |
cat ~/.bundle/config | |
/bin/echo | |
/bin/echo '.bundle/config:' | |
cat .bundle/config | |
/bin/echo | |
/bin/echo 'jruby -S bundle check:' | |
jruby -S bundle --no-color check | |
/bin/echo | |
/bin/echo '>>> JRuby <<<' | |
/bin/echo | |
/bin/echo 'which jruby: ' | |
which jruby | |
/bin/echo | |
/bin/echo '>>> Gems <<<' | |
/bin/echo | |
/bin/echo 'jruby -S gem list: ' | |
jruby -S gem list | |
/bin/echo | |
/bin/echo 'jruby -S gem env:' | |
jruby -S gem env | |
/bin/echo | |
/bin/echo 'grep torquebox Gemfile:' | |
grep torquebox Gemfile | |
/bin/echo | |
/bin/echo '>>> Rails? <<<' | |
/bin/echo | |
/bin/echo 'Rails version: ' | |
/bin/echo 'checking config/environment.rb:' | |
grep RAILS_GEM_VERSION config/environment.rb | |
/bin/echo 'checking Gemfile:' | |
grep rails Gemfile | |
/bin/echo | |
/bin/echo '>>> Installed Apps <<<' | |
/bin/echo | |
/bin/echo 'ls $TORQUEBOX_HOME/apps:' | |
ls $TORQUEBOX_HOME/apps | |
/bin/echo | |
/bin/echo 'ls $JBOSS_HOME/server/default/deploy/*knob*:' | |
ls $JBOSS_HOME/server/default/deploy/*knob* | |
/bin/echo | |
/bin/echo 'ls $JBOSS_HOME/server/default/deploy/*rails*:' | |
ls $JBOSS_HOME/server/default/deploy/*rails* | |
/bin/echo | |
/bin/echo 'ls $JBOSS_HOME/server/default/deploy/*rack*:' | |
ls $JBOSS_HOME/server/default/deploy/*rack* | |
/bin/echo | |
/bin/echo '>>> Knob Contents <<<' | |
/bin/echo | |
find "$TORQUEBOX_HOME"/apps -maxdepth 1 -name "*.knob" | while read -r f; do | |
/bin/echo ">> $f:" | |
unzip -l "$f" | |
# if unzip isn't available, try jar: | |
# jar tvf "$f" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment