Giter Club home page Giter Club logo

resweb's Introduction

Resweb

##About Resweb originally started as part of the pyres project. However, I realized that for many reasons, both it and pyres would benefit from being their own projects. Hopefully this will help the release schedule of both pyres and resweb.

##Installation

  • pip install resweb or
  • download source and run: python setup.py install

##Configuration By default resweb will try to connect to redis on localhost. However, if you'd like to connect to another server, create an environment variable called RESWEB_SETTINGS and in the file referenced, put an entry for the following settings:

RESWEB_HOST = "10.0.0.1:5367"
RESWEB_PASSWORD = 'somepass'

If you would like to run the server on something other than 127.0.0.1:5000, please set the following variables in the configuration file:

SERVER_HOST = "0.0.0.0"
SERVER_PORT = 8080

###Authentication Configuration If you would like to enable basic auth, enable the following settings:

BASIC_AUTH = True
AUTH_USERNAME = "someuser"
AUTH_PASSWORD = "somepassword"

Then, use the username and password to login via the authentication popup provided by the browser. Be warned, this is just a stopgap and should not be considered secure.

##Running After installing, just run the following from the command line:

resweb 

Afterwards vist: http://localhost:5000

resweb's People

Contributors

jasonamyers avatar binarymatt avatar boivie avatar heynemann avatar salimane avatar

Stargazers

 avatar Nantiwat Thongseng avatar Ysnr Kdm avatar RJ Duffner avatar Thiago Pio avatar Shreyans Bhansali avatar Zhen Tian avatar Yukihiro Okada (Yuki) avatar Ray Silva avatar Jason Emerick avatar hu avatar Alan Grosskurth avatar Christian Hochfilzer avatar Luiz Boaretto avatar ☮ avatar Victor Baumann avatar Joe Shaw avatar

Watchers

Christian Hochfilzer avatar James Cloos avatar

resweb's Issues

convert to blueprint?

The biggest advantage for this would be that users with existing flask apps could very quickly hook this up. As it stands, users have to deploy this in a separate WSGI process.

The resweb executable could create it's own app and use the blueprint behind the scenes.

Thoughts/comments?

minions don't have any monitoring via resweb

Minions created by the pyres_manager tool don't appear in the pyres_web interface so it's not possible to monitor them.

Presumably this is in part because they are use the "resque:minions" redis key and not the "resque:workers" key.

resweb should default to running Flask with debug=True

Letting Flask swallow exceptions (e.g. redis.exceptions.ConnectionError) in normal mode hides errors behind a generic 500 error page that doesn't tell you what went wrong. If you run Flask with debug=True instead, you get the original exception presented in the response (as well as in the log), which is much more useful.

Relavent code in core.py:

def main():
    app.run(debug=True, host=app.config['SERVER_HOST'], port=int(app.config['SERVER_PORT']))

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.