Coder Social home page Coder Social logo

le_openshift's People

Contributors

andrea-sdl avatar gearoidof avatar marklc-r7 avatar rsheng-r7 avatar stephenhynes7 avatar thesteve0 avatar tparso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

le_openshift's Issues

Using the wrong action hook

If I stop the app using any command. And then start the app again using:

rhc app start -a {appname}

The monitor daemon never starts because the deploy action_hook is never called. I think you need to actually use the post_start action hook. I can explain more if you need help with it

Automatically adding logs won't work in Java and other apps

It seems that in the post_deploy action hook you are looking for files with _log. to follow. This won't work for a lot of different cartridge types. It is too specific to apache logs. I think it would just be better to add *.log or add nothing and let the user add it in the ini file.

Won't follow Node logs

FYI logentries team -- your current post_deploy bash file won't follow the Node logs, as they are saved as node.log -- filename doesn't include 'log'.

I've added the below to the bottom of my bash file (prior to start monitoring):

# Explicitly follow the Node and HAProxy logs
node=${OPENSHIFT_NODEJS_LOG_DIR}node.log
${OPENSHIFT_REPO_DIR}logentries/le follow "$node"
haproxy=${OPENSHIFT_HAPROXY_LOG_DIR}haproxy.log
${OPENSHIFT_REPO_DIR}logentries/le follow "$haproxy"

OPENSHIFT_.*_LOG_DIR does not exist

I just started a new PHP 5.4 cartrige on OpenShift Online today, and have been trying to get my logs sent to logentries.com. After following the installation instructions, no logs were being sent to logentries.com so I SSH'd into the app and ran le whoami, which said no logs were being followed. So I looked through the post_deploy script and noticed that env | grep OPENSHIFT_.*_LOG_DIR returned no resuts. The only environment variable that contained "LOG" was OPENSHIFT_LOG_DIR.
After I edited the post_deploy script, le whoami said it was following php.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.