IDDRS_API/guide.txt
2023-11-29 14:21:44 +01:00

71 lines
1.9 KiB
Plaintext

pip install django
pip install django-rest-framework
pip install --upgrade djangorestframework-simplejwt
pip install django-filter
pip install django-cors-headers
pip install elasticsearch
pip install xhtml2pdf
# if error occured
sudo apt install libcairo2-dev pkg-config python3-dev
pip3 install pycairo
# the above command will install pycairo 1.17.1
# then re-install pip install xhtml2pdf
pip install python-docx
pip install PyMuPDF
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_sm
<VirtualHost *:8000>
ServerAdmin webmaster@localhost
DocumentRoot /home/ubuntu/IDDRS_API
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/ubuntu/IDDRS_API/static
<Directory /home/ubuntu/IDDRS_API/static>
Require all granted
</Directory>
<Directory /home/ubuntu/IDDRS_API/iddrs_api>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / /home/ubuntu/IDDRS_API/iddrs_api/wsgi.py
WSGIDaemonProcess django_app python-path=/home/ubuntu/IDDRS_API python-home=/home/ubuntu/iddrs_venv
WSGIProcessGroup django_app
</VirtualHost>
<VirtualHost *:80>
ServerName 144.217.95.15
DocumentRoot /home/ubuntu/IDDRS_Client/build
ErrorLog /home/ubuntu/IDDRS_Client/log/error.log
CustomLog /home/ubuntu/IDDRS_Client/log/requests.log combined
<Directory /home/ubuntu/IDDRS_Client/build>
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
</VirtualHost>
<VirtualHost *:8001>
ServerName 144.217.95.15
DocumentRoot /home/ubuntu/IDDRS_Admin/build
ErrorLog /home/ubuntu/IDDRS_Admin/log/error.log
CustomLog /home/ubuntu/IDDRS_Admin/log/requests.log combined
<Directory /home/ubuntu/IDDRS_Admin/build>
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
</VirtualHost>