Giter Site home page Giter Site logo

modencode's Introduction

A Flask app serving the homepage of the modENCODE project

Requirements:

  • Flask
  • CherryPy WSGI Server (for production)

Installation:

Make sure these are installed:

  • Flask easy_install flask
  • CherryPy easy_install cherrypy

Setup

  • Run the install script python install.py and choose the port the app will run at
  • Configure SMTP and other settings in config.py
  • Modify site constants as needed in models/constants.py

Running

Flask/Werkzeug Server (for development)

The app can be run through the Werkzeug WSGI server that comes with Flask. To run it, execute python flask_app.py. Provided you have set DEBUG = True in your config.py file, this option will give you an interactive debugger and your app will be reloaded if changes to source files are detected.

CherryPy WSGI Server (for production)

  1. Run ./start_server.sh. This will launch cherryd with settings coming from cherrypy.conf that uses an 'in-between' script create_flask_app.py to attach the Flask Object to the server
  2. A file, cherrypy.pid will be created that has the id of the process running
  3. Calling ./stop_server.sh will read the .pid file and kill the process waiting for child threads to terminate

Update from GitHub

Run ./github_update.sh to stop the running server, run a git pull and start the server again.

modencode's People

Contributors

radekstepan avatar boboppie avatar sergiocontrino avatar

Watchers

James Cloos avatar  avatar Marc Perry avatar

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.