|
3 years ago | |
---|---|---|
.idea | 3 years ago | |
PonyHub | 3 years ago | |
applications | 3 years ago | |
static | 3 years ago | |
templates | 3 years ago | |
.gitignore | 3 years ago | |
README.md | 3 years ago | |
manage.py | 3 years ago | |
ponyhub.conf.sample | 3 years ago | |
ponyhub.ini.sample | 3 years ago | |
requirements.txt | 3 years ago |
README.md
PonyHub
Ponyhub is a funny project based on a very known website front-end elements without NSFW but with a lot of ponies.
This software is written in Python using Django Framework.
Currently, this project is in beta and a lot of features are missing so it's can't be in production for now.
Deployment
Requirements :
To deploy PonyHub you need :
- Python3.7 or higher with pip
- A GNU/Linux machine (Ubuntu 18.04 recommended)
- An internet connection
- At least 20 GB free on your hard drive to stock a lot of ponies
- A MySQL server (MariaDB recommended)
Installation :
-
Clone the Git repository :
git clone https://git.gnous.eu/gnouseu/Ponyhub/
-
Install fmpeg :
sudo apt install ffmpeg
-
Install required Python dependencies :
python3.7 -m pip install -r requirements.txt
-
Edit
PonyHub/settings.py
DATABASE
variable.
Running :
python manage.py runserver 127.0.0.1:8000
(8000 => web port)
Production :
UWSGI :
In production, you should use UWSGI to run PonyHub.
-
Install UWSGI be following official doc. : https://uwsgi-docs.readthedocs.io/en/latest/Install.html
-
Copy and edit
ponyhub.ini.sample
to/etc/uwsgi/sites
.
Nginx Reverse Proxy :
We recommend you to use a reverse proxy in production. NGINX is the best Reverse Proxy so you should use it :^).
-
Install NGINX :
sudo apt install nginx
-
Copy and edit
ponyhub.conf.sample
to/etc/nginx/sites-available/
-
Make a symbolic link to enable it :
sudo ln -s /etc/nginx/sites-available/ponyhub.conf /etc/nginx/sites-enabled/ponyhub.conf
-
Check NGINX configuration :
sudo nginx -t
-
Reload NGINX :
sudo service nginx reload