diff --git a/README.md b/README.md index f5cb881..a584b72 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # 𝛑 😼 た > "PyNyaaTa", Xéfir's personal animes torrent search engine +[![Build Status](https://ci.crystalyx.net/api/badges/Xefir/PyNyaaTa/status.svg)](https://ci.crystalyx.net/Xefir/PyNyaaTa) + I'm lazy and I want to search across severall VF and VOSTFR torrents databases in one click. That's the starting point that build this app. At first, it was a crappy PHP project without any good future. @@ -11,10 +13,9 @@ After a good rewrite in Python, it's time to show it to the public, and here it ### With Docker - Install Docker: https://hub.docker.com/search/?type=edition&offering=community -- Clone this repository -- Launch a terminal and move into the root of the cloned repository -- Run `docker-compose build` -- Run `docker-compose up -d` +- Be sure to have a MySQL Server installed and running +- Create a .env like [this one](.env.dist) +- Run `docker run --env-file .env -p 5000 xefir/pynyaata` - The app is accessible at http://localhost:5000 ### Without Docker diff --git a/config.py b/config.py index 7d8c35f..1842f0c 100644 --- a/config.py +++ b/config.py @@ -30,7 +30,6 @@ app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://%s:%s@%s/%s?charset=utf db_user, db_password, db_host, db_name ) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True -app.config['SQLALCHEMY_POOL_RECYCLE'] = 200 app.config['SQLALCHEMY_ECHO'] = IS_DEBUG app.url_map.strict_slashes = False auth = HTTPBasicAuth() diff --git a/requirements.txt b/requirements.txt index 62a7b36..ac8646b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,10 @@ -Flask==1.0.2 -Flask-SQLAlchemy==2.1 -SQLAlchemy==1.2.18 -Flask-HTTPAuth==3.2.4 -Flask-WTF==0.14.2 +Flask==1.1.2 +Flask-SQLAlchemy==2.4.1 +Flask-HTTPAuth==3.3.0 +Flask-WTF==0.14.3 WTForms==2.2.1 PyMySQL==0.9.3 -requests==2.21.0 -beautifulsoup4==4.7.1 -python-dotenv==0.9.1 -Werkzeug==0.14.1 -requests-toolbelt -cloudscraper +requests==2.23.0 +beautifulsoup4==4.9.0 +python-dotenv==0.12.0 +cloudscraper==1.2.33