User Tools

Site Tools


other

This is an old revision of the document!


Software and Server Documentation

Application:

  • Python 3.10.6
  • Django 4.1.5
  • Celery(Redis)
  • Celery Beat

Nowa - Bootstrap5 Admin & Dashboard Template. HTML5, CSS3, Bootstrap 5 framework and with Sass.

Dependencies:

  • Bootstrap v5.1.3
  • Sass
  • Gulp
  • JQuery v3.6.0

GIT repo https://github.com/kaduu-cyber-threat-intelligence/forum-scanner

Prod directory: /var/work/forum_scraper

Do NOT update via root! Use "sudo -u www-data git pull".

For sync DB - "python3 manage.py migrate –run-syncdb"

Deploy:

Django + Uwsgi + Nginx

This tutorial is aimed at the Django user who wants to set up a production web server.

https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html

Supervisor is a system that allows its users to monitor and control a number of processes on UNIX-like operating systems. We need to make sure that our server starts automatically with the system and that it can automatically restart if for some reason it exits unexpectedly. These tasks can easily be handled by Supervisor.

Supervisor:

  • celery worker - A Celery worker that executes the task for celery
  • celer beat - A scheduler that kicks off tasks at regular intervals

Logs:

  • /var/log/celery
  • /var/log/nginx
  • /var/log/uwsgi/app

configs

  • etc/nginx/sites-enabled
  • etc/uwsgi/apps-enabled
  • etc/supervisor/conf.d
other.1683705612.txt.gz · Last modified: 2023/05/22 20:40 (external edit)