Skip to content

Instantly share code, notes, and snippets.

@rex
Last active December 18, 2015 13:59
Show Gist options
  • Save rex/5793487 to your computer and use it in GitHub Desktop.
Save rex/5793487 to your computer and use it in GitHub Desktop.
rex-* ecosystem error tracking and history
λ ~/ rex-app
/usr/local/lib/node_modules/rex-git/lib/rex-git.js:47
, git_commands = _.rex_commands().git
^
TypeError: Object function (obj) {
if (obj instanceof _) return obj;
if (!(this instanceof _)) return new _(obj);
this._wrapped = obj;
} has no method 'rex_commands'
at Object.<anonymous> (/usr/local/lib/node_modules/rex-git/lib/rex-git.js:47:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/rex-app/lib/rex-app.js:41:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
λ ~/
λ ~/Zngine/ rex-git dirty
[ rex-utils: Log ] Finding dirty git repos in: /Users/pierce/Zngine
> zngine-email.wiki (ERROR) - Unable to Retrieve Status null
> zngine-email (ERROR) - Unable to Retrieve Status null
> zngine-ds.wiki (ERROR) - Unable to Retrieve Status null
> zngine-ds (ERROR) - Unable to Retrieve Status null
> zngine-pr.wiki (ERROR) - Unable to Retrieve Status null
> zngine-api (ERROR) - Unable to Retrieve Status null
> zngine-admin (ERROR) - Unable to Retrieve Status null
> zngine-static-html (ERROR) - Unable to Retrieve Status null
> zngine-scripts (ERROR) - Unable to Retrieve Status null
[ rex-utils: Error ] 9 dirty git repos were found in '/Users/pierce/Zngine'.
λ ~/Zngine/
# Command 'rex-git -s' in ~/Zngine/
#
# SOLUTION: The 'status' script wasn't in the development branch of the checked out folder.
λ /usr/local/Library/ master cd ~/Zngine
λ ~/Zngine/ rex-git -s
[ rex-shell: Log ] Displaying status of all git repos in: /Users/pierce/Zngine
fs.js:684
return binding.stat(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory '/Users/pierce/Zngine/info'
at Object.fs.statSync (fs.js:684:18)
at /usr/local/lib/node_modules/rex-git/lib/rex-git.js:81:19
at Array.forEach (native)
at Function._.each._.forEach (/usr/local/lib/node_modules/rex-git/node_modules/underscore/underscore.js:78:11)
at tree (/usr/local/lib/node_modules/rex-git/lib/rex-git.js:74:5)
at exports.status.status (/usr/local/lib/node_modules/rex-git/lib/rex-git.js:149:15)
at Object.exports.init (/usr/local/lib/node_modules/rex-git/lib/rex-git.js:100:5)
at Object.<anonymous> (/usr/local/lib/node_modules/rex-git/bin/rex-kickstart:40:26)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
λ ~/Zngine/ ls -al
total 576
drwxr-xr-x 22 pierce staff 748 Jun 20 13:51 .
drwxr-xr-x 42 pierce staff 1428 Jun 20 15:20 ..
-rw-r--r--@ 1 pierce staff 12292 Jun 10 16:38 .DS_Store
lrwxr-xr-x 1 pierce staff 49 Jun 20 13:50 build -> /Users/pierce/Zngine/zngine-scripts/Foreman/build
-rw-r--r-- 1 root staff 241808 Jun 20 13:39 dump.rdb
lrwxr-xr-x 1 pierce staff 49 Jun 20 13:50 go -> /Users/pierce/Zngine/zngine-scripts/Foreman/start
lrwxr-xr-x 1 pierce staff 50 Jun 20 13:50 info -> /Users/pierce/Zngine/zngine-scripts/Foreman/status
lrwxr-xr-x 1 pierce staff 52 Jun 20 13:50 procfile -> /Users/pierce/Zngine/zngine-scripts/Foreman/procfile
lrwxr-xr-x 1 pierce staff 49 Jun 20 13:50 start -> /Users/pierce/Zngine/zngine-scripts/Foreman/start
lrwxr-xr-x 1 pierce staff 50 Jun 20 13:50 status -> /Users/pierce/Zngine/zngine-scripts/Foreman/status
lrwxr-xr-x 1 pierce staff 48 Jun 20 13:50 stop -> /Users/pierce/Zngine/zngine-scripts/Foreman/stop
lrwxr-xr-x 1 pierce staff 50 Jun 20 13:50 update -> /Users/pierce/Zngine/zngine-scripts/Foreman/update
drwxr-xr-x 22 pierce staff 748 Jun 5 10:49 zngine-admin
drwxr-xr-x 5 pierce staff 170 May 31 07:42 zngine-api
drwxr-xr-x 30 pierce staff 1020 Jun 19 14:31 zngine-ds
drwxr-xr-x 39 pierce staff 1326 May 31 07:19 zngine-ds.wiki
drwxr-xr-x 9 pierce staff 306 Jun 13 10:53 zngine-email
drwxr-xr-x 4 pierce staff 136 May 31 07:19 zngine-email.wiki
drwxr-xr-x 13 pierce staff 442 Jun 13 09:18 zngine-pr
drwxr-xr-x 16 pierce staff 544 Jun 18 10:45 zngine-pr.wiki
drwxr-xr-x 12 pierce staff 408 Jun 19 17:12 zngine-scripts
drwxr-xr-x 40 pierce staff 1360 May 31 07:19 zngine-static-html
λ ~/Zngine/ cd zngine-scripts
λ ~/Zngine/zngine-scripts/ development git checkout master
Switched to branch 'master'
λ ~/Zngine/zngine-scripts/ master cd ../
λ ~/Zngine/ rex-git -s
[ rex-shell: Log ] Displaying status of all git repos in: /Users/pierce/Zngine
[ rex-shell: Log ] 10 git repositories found:
> zngine-ds (ERROR)
From github.com:sq1agency/zngine-ds
529c878..f1c9c57 development -> origin/development
> zngine-ds
## development...origin/development [behind 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment