shell - A way not to wait for Heroku to compile/Git pre-receive hook to finish -
i push rails builds heroku via git. unfamiliar, code pushed heroku git push
, , pre-receive hook compiles whole thing before validating reception.
the thing is, waiting compilation long (typically 2 minutes me) , adds when 1 ends pushing , re-pushing many small changes. 2 minutes can turn fifteen, while i'm being deprived of shell.
is there way not have wait after compilation/hook finish gain shell still feedback eg. if fails?
i know suspend (^z
) command, i'm not sure if halt process/prevent feedback.
i imagine if pre-receive hook fails, exits exit code. mean git push
exists non-zero exit code.
if that's case, can run small wrapper: git push, redirect output file, , when done check exit code. if success, notify (email? beep?). if failure -- same, , can check output in temporary file.
that wrapper run "in background": git_push_wrapper.sh mybranch &
.
if wanted "detach" within script (daemonize it), run without &
, not [1] 4844
, [1]+ done
.
Comments
Post a Comment