Giter Site home page Giter Site logo

andrekbludo / zimbalaka Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tecoholic/zimbalaka

0.0 1.0 0.0 332 KB

A Flask app to generate OpenZim files from select Wikipedia pages

License: GNU General Public License v2.0

Python 56.04% JavaScript 2.04% HTML 41.92%

zimbalaka's Introduction

Stories in Ready

Zimbalaka

A Flask app to generate OpenZim files from select Wikipedia pages

Pre-requisites

  1. Install OpenZim - For Ubuntu 14.04 sudo apt-get install libzim-dev Package
  2. Get zimwriterfs - build and install it
  3. Install lxml requirements - For Ubuntu 14.04 sudo apt-get install libxml2-dev libxslt-dev python-dev zlib1g-dev
  4. Install Redis - build, install & run.

Deploying on Ubuntu with apache2 and mod_wsgi

  1. sudo apt-get install libzim-dev libxml2-dev libxslt-dev python-dev zlib1g-dev python-pip python-virtualenv libapache2-mod-wsgi

  2. git clone https://github.com/tecoholic/Zimbalaka.git

  3. cd Zimbalaka

  4. virtualenv env

  5. . env/bin/activate

  6. pip install -r requirements.txt

  7. Download, build. install and run redis.

     wget http://download.redis.io/releases/redis-3.0.1.tar.gz
     tar xzf redis-3.0.1.tar.gz
     cd redis-3.0.1
     make && make install
     ./utils/install_server.sh # maintain defaults except datastore location
     cd ..
    
  8. Put zimwriterfs somewhere or compile and install

  9. Edit zimbalaka/default_settings.py to reflect your production environment

  10. Edit path in celery.conf

  11. Run supervisord supervisord -c supervisord.conf

  12. mkdir /var/www/zimbalaka

  13. Edit path in zimbalaka.wsgi and cp zimbalaka.wsgi /var/www/zimbalaka/zimbalaka.wsgi

  14. Configure apache2: sudo a2enmod wsgi and add the following to /etc/apache2/sites-available/000-default.conf

    WSGIDaemonProcess zimbalaka threads=5 display-name=%{GROUP}
    WSGIProcessGroup zimbalaka
    
    WSGIScriptAlias /zimbalaka /var/www/zimbalaka/zimbalaka.wsgi
    
    <Directory /var/www/zimbalaka>
        Order allow,deny
        Allow from all
    </Directory>
    
  15. sudo service apache2 restart

Now the site should be live at domain/zimbalaka

Developers

There are a lot of dependencies in this project which can be changed depending on the deployment situation.

  • Server - Perhaps nginx + gunicorn in palce of apache2+mod_wsgi
  • Celery broker - RabbitMQ in place of Redis, or even Amazon Simple Queue Service
  • Demonizing Celery - something in place of supervisor

zimbalaka's People

Contributors

tecoholic avatar waffle-iron avatar

Watchers

James Cloos 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.