Coder Social home page Coder Social logo

chinese-soup / zradlo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 3.0 93 KB

Stránka pro agregaci jídelníčku poblíž ulic Argentinská, Dělnická, Tusarova

Home Page: http://jidlo.o2its.cz/

Python 51.17% JavaScript 24.08% HTML 24.75%
foodtracker restaurant-menu aggregator web-app flask

zradlo's Introduction

Zradlo

Stránka pro agregaci jídelníčku poblíž ulic Argentinská, Dělnická, Tusarova, ...

Instalace

$ apt-get install python3 python3-pip # deb
$ pip3 install flask Flask-Cache beautifulsoup4 lxml Jinja2
$ apt-get install libapache2-mod-wsgi

Konfigurace

Aplikace + spouštěcí wsgi soubor

cd /var/www/ 
git clone https://github.com/chinese-soup/zradlo.git

Ve složce /var/www/ vytvořit soubor wgsi, např. jidelak.wgsi

import sys, os
#workaround
sys.path.insert(0,'/var/www/zradlo')
os.chdir("/var/www/zradlo")
from jidlo import app as application # import app

Apache VirtualHost

Přidat VirtualHost do příslušného konfiguračního souboru (apache2.conf, httpd.conf, sites-available/něco.conf, conf.d/něco.conf, atd.)

<VirtualHost *:80>
    ServerName jidlo.o2its.cz
    ServerAlias jidlo.memer.top       

    WSGIDaemonProcess jidelak user=user1 group=group1 threads=5 # nastavit dle potreby!
    WSGIScriptAlias / /var/www/jidelak.wgsi # cesta k wgsi souboru
    WSGIScriptReloading On

    <Directory /var/www/zradlo>
        WSGIProcessGroup jidelak
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all

    </Directory>
</VirtualHost>

zradlo's People

Contributors

chinese-soup avatar

Watchers

 avatar

Forkers

tcpj kisuke-cze

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.