GithubHelp home page GithubHelp logo

combogenomics / medusa-webapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 2.0 11.55 MB

Medusa web server

Home Page: http://combo.dbe.unifi.it/medusa/

License: MIT License

Python 43.16% CSS 1.13% JavaScript 17.48% HTML 38.23%

medusa-webapp's Introduction

Medusa-webapp

Scaffold the contigs!

Test the server

Please make sure that redis is up and running. Also, put in the "static" directory a 3.x version of bootstrap and jquery.min.js in the static/js directory. Create a directory called medusa-app, with the medusa.jar file and the medusa_scripts folder inside. Also, make sure that you have the atd deamon running (used for job queue handling)

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python medusa.py

That's it! Open a browser on the same machine and got to 127.0.0.1:5000

Production

First, install all the dependencies

sudo pip install -r requirements.txt

Then install in apache the medusa.conf file (changing the paths). NOTE: if you have multiplt webservers running, the best way to have them running at the same time seems to include all the WSGI definitions in the same VirtualHost.

Create a production.py file which can then be used to override the settings.py debug options.

You may want to tweak the atd deamon parameters to change the load and delay scheduling (tested on Debian 3.16)

sudo vim /lib/systemd/system/atd.service

And then introduce the following edits:

[Service]
ExecStart=
ExecStart=/usr/sbin/atd -f -l LOAD -b 1

Where LOAD is your desired load threshold to start new jobs

Reload the configuration and restart the service:

sudo systemctl daemon-reload
sudo systemctl restart atd
sudo systemctl status atd

Restart apache and start redis.

To update the server once the upstream repository has been updated, just run git pull and the restart apache.

Edit the mail_log.py file to setup the error logging through email.

You may also want to set up a cron job to wipe out the uploads directly every now and then

medusa-webapp's People

Contributors

mgalardini avatar ebosi avatar

Stargazers

Tang Zheng'en avatar

Watchers

James Cloos avatar  avatar  avatar Giovanni Bacci 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.