openshift - Action hooks in python: no output -
i've been working on openshift app action hooks written in python.
the action hooks run, , work, can not output display when create app. when run rhc app create ...
app created, none of status or debug messages try output ever display.
the code gets called this:
b = library.object() b.build()
i have tried:
- adding logging function object , adding
b.showlog()
code above. print "message value: {0}".format(variable)
inside build hook scriptprint >>sys.stderr, "something bad happened: '{0}'...".format(return_code)
inside build hook script
when i've written action hooks in bash, echo ...
works fine.
this exact question doesn't seem have been answered before, though there questions that superficially similar.
you don't action hook output during app create. see during "git push" when update code. suggest having output write log file in ~/app-root/data directory instead can view later. also, if catch @ right time, can ssh application while being created first time.
Comments
Post a Comment