Installazione server backend¶
Installare python3.7¶
sudo su
dnf install gcc openssl-devel bzip2-devel libffi-devel
cd /opt wget https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tgz tar xzf Python-3.7.9.tgz cd Python-3.7.9 ./configure –enable-optimizations yum install make make altinstall rm Python-3.7.9.tgz
CTRL+D python3.7 -V
ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
yum install -y xz-devel dnf install sqlite-devel
cd /opt/Python-3.7.9/ ./configure –enable-loadable-sqlite-extensions && make && sudo make install
pip3.7 install uwsgi
Installare wkhtmltopdf¶
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.rpm
CTRL+D
wkhtmltopdf
Installare git¶
dnf install git -y CTRL+D ssh-keygen -t rsa -b 4096 -C “it@prodigys.it”
cat /home/local/CED/e_moretto_c/.ssh/id_rsa.pub e metterla come deploy key di gitlab sui progetti necessari
Installare nginx¶
dnf install nginx systemctl enable nginx systemctl start nginx
setup repo¶
cd /usr/local/ mkdir prodigys
git clone https://gitlab.com/coding-lab/prodigys/gnam/gnam-backend.git git clone https://gitlab.com/coding-lab/prodigys/gnam/gnam-frontend.git
Oracle client¶
wget https://download.oracle.com/otn_software/linux/instantclient/199000/oracle-instantclient19.9-basic-19.9.0.0.0-1.x86_64.rpm yum -y localinstall oracle-instantclient19.9-basic-19.9.0.0.0-1.x86_64.rpm rm oracle-instantclient19.9-basic-19.9.0.0.0-1.x86_64.rpm
crontab¶
per la mensa impostare il cron ./run-make.sh send_canteen_daily_report
Cron per la ricerca degli aggiornamenti sui pagamenti NON pagati ./run-make.sh check_payments
Cron sulla sottoscrizione giornaliera: ./run-make.sh sottoscrizione