- Add complete database setup script (setup_complete_database.py) - Add quick deployment script (quick_deploy.sh) - Add comprehensive documentation (DATABASE_SETUP_README.md) - Move individual db scripts to backup_db_scripts folder - Update external_server.conf with correct database settings - Clean up obsolete documentation files - Streamline deployment process to single command Features: - One-script database creation for all tables and triggers - Automated permissions and roles setup - Complete verification and error handling - Production-ready deployment workflow - Maintains backward compatibility with individual scripts
33 lines
992 B
Plaintext
33 lines
992 B
Plaintext
|
|
# Steps to Prepare Environment for Installing Python Requirements
|
|
|
|
1. Change ownership of the project directory (if needed):
|
|
sudo chown -R $USER:$USER /home/ske087/quality_recticel
|
|
|
|
2. Install Python venv module:
|
|
sudo apt install -y python3-venv
|
|
|
|
3. Create and activate the virtual environment:
|
|
python3 -m venv recticel
|
|
source recticel/bin/activate
|
|
|
|
4. Install MariaDB server and development libraries:
|
|
sudo apt install -y mariadb-server libmariadb-dev
|
|
|
|
5. Create MariaDB database and user:
|
|
sudo mysql -e "CREATE DATABASE trasabilitate; CREATE USER 'sa'@'localhost' IDENTIFIED BY 'qasdewrftgbcgfdsrytkmbf\"b'; GRANT ALL PRIVILEGES ON quality.* TO 'sa'@'localhost'; FLUSH PRIVILEGES;"
|
|
sa
|
|
qasdewrftgbcgfdsrytkmbf\"b
|
|
|
|
trasabilitate
|
|
Initial01!
|
|
|
|
6. Install build tools (for compiling Python packages):
|
|
sudo apt install -y build-essential
|
|
|
|
7. Install Python development headers:
|
|
sudo apt install -y python3-dev
|
|
|
|
8. Install Python requirements:
|
|
pip install -r py_app/requirements.txt
|