flask - How can I tail logs from OpenShift to be verbose about python setup.py, virtualenv, and pip? -


when run:

rhc tail -a myapp 

i see stream of log messages @ app startup, nothing setup of virtualenv , installation of dependencies in requirements.txt, flask etc. how can better monitor on server purposes of debugging, in case run problem? easy in heroku, i'm considering migrating apps openshift, if options debugging python flexible.

when git push changes app openshift responds detailed output regarding status of setup.py, requirements.txt, etc. here sample (abbreviated) output deployment python app on openshift:

$ git commit -m "adds beautifulsoup" $ git push counting objects: 3, done. ... remote: stopping python 3.3 cartridge remote: waiting stop finish ... remote: building git ref 'master', commit 8d92954 remote: activating virtenv remote: checking pip dependency listed in requirements.txt file.. ... remote: collecting beautifulsoup4 (from -r /var/lib/openshift/553fde444382eca8a0000028/app-root/runtime/repo/requirements.txt (line 1)) ... remote: downloading http://mirror1.ops.rhcloud.com/mirror/python/web/packages/source/b/beautifulsoup4/beautifulsoup4-4.3.2.tar.gz (143kb) remote: installing collected packages: beautifulsoup4 remote: running setup.py install beautifulsoup4 remote: installed beautifulsoup4-4.3.2 remote: running setup.py script.. remote: running develop remote: running egg_info remote: creating yourappname.egg-info remote: writing top-level names yourappname.egg-info/top_level.txt remote: writing yourappname.egg-info/pkg-info remote: writing dependency_links yourappname.egg-info/dependency_links.txt remote: writing manifest file 'yourappname.egg-info/sources.txt' remote: running build_ext remote: creating /var/lib/openshift/553fde444382eca8a0000028/app-root/runtime/dependencies/python/virtenv/venv/lib/python3.3/site-packages/yourappname.egg-link (link .) remote: adding yourappname 1.0 easy-install.pth file remote: installed /var/lib/openshift/553fde444382eca8a0000028/app-root/runtime/repo remote: processing dependencies yourappname==1.0 remote: finished processing dependencies yourappname==1.0 remote: preparing build deployment remote: deployment id d9c707fb remote: activating deployment remote: starting python 3.3 cartridge (apache+mod_wsgi) remote: application directory "/" selected documentroot remote: application "wsgi.py" selected default wsgi entry point remote: ------------------------- remote: git post-receive result: success remote: activation status: success remote: deployment completed status: success 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -