Coder Social home page Coder Social logo

wonlog's People

Contributors

dependabot-preview[bot] avatar devrama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wonlog's Issues

wonlog-server options for server-host and server-port are not working

If you pass --server-host or --server-port options to the wonlog-server it's ignoring those values and continues to use the default 127.0.0.1:7978 values. Using the browser debug in the web interface I can see it failing with a "WebSocket connection to 'ws://192.168.1.101:7978/' failed" message even when the options are passed. I installed using npm (although I would prefer docker, but that's not up to date) and in the /usr/local/lib/node_modules/wonlog/dist/wonlog/bin/wonlog-server.js file I initially change the default 127.0.0.1 to my ip, and it started to work (using the default port):

// .replace('%%WONLOG_RELEASE_WEBSOCKET_URL%%', ws://${options['http-host'] || '127.0.0.1'}:${options['http-port'] || 7978});
.replace('%%WONLOG_RELEASE_WEBSOCKET_URL%%',ws://${options['http-host'] || '192.168.1.101'}:${options['http-port'] || 7978});

After looking at it some more I realized the option names (at line 25) are incorrectly "http-host" and "http-port" instead of "server-host" and server-port" in the file. Once I updated it with the correct option names it works fine:

// .replace('%%WONLOG_RELEASE_WEBSOCKET_URL%%', ws://${options['http-host'] || '127.0.0.1'}:${options['http-port'] || 7978});
.replace('%%WONLOG_RELEASE_WEBSOCKET_URL%%', ws://${options['server-host'] || '127.0.0.1'}:${options['server-port'] || 7978});

I know you're not doing a lot of development with this recently, but I've been a long time rTail user that got tired of the flakiness of the display not properly updating and the wrong log displaying. Thus I'm excited at the prospects that your rewrite functions better. Thus thank you for your time and effort!

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.