docs: reorganize project structure and update root README
Project Organization: - Moved configuration files to project-config/ directory - Moved documentation files to documentation/ directory - Moved security reports to security/ directory - Moved backup files to backup-config/ directory - Created PROJECT_ORGANIZATION_SUMMARY.md documenting changes - Updated all script references to new file locations Root README Simplification: - Replaced 715-line detailed README with 95-line structure guide
This commit is contained in:
@@ -41,7 +41,7 @@ backup_requirements() {
|
||||
|
||||
# Backup all requirements files
|
||||
find . -name "requirements*.txt" -not -path "./venv/*" -exec cp {} "$backup_dir/" \;
|
||||
find . -name "pyproject.toml" -not -path "./venv/*" -exec cp {} "$backup_dir/" \;
|
||||
find . -name "pyproject.toml" -not -path "./venv/*" -not -path "./project-config/*" -exec cp {} "$backup_dir/" \;
|
||||
|
||||
log_success "Backup created in $backup_dir"
|
||||
}
|
||||
|
||||
30
scripts/maintenance/update-file-references.sh
Executable file
30
scripts/maintenance/update-file-references.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update file references after project reorganization
|
||||
# This script updates all references to moved files
|
||||
|
||||
set -e
|
||||
|
||||
echo "=== Updating File References ==="
|
||||
|
||||
# Update requirements.txt references
|
||||
echo "Updating requirements.txt references..."
|
||||
find /opt/aitbc/scripts -name "*.sh" -type f -exec sed -i 's|/opt/aitbc/requirements\.txt|/opt/aitbc/project-config/requirements.txt|g' {} \;
|
||||
find /opt/aitbc/scripts -name "*.py" -type f -exec sed -i 's|/opt/aitbc/requirements\.txt|/opt/aitbc/project-config/requirements.txt|g' {} \;
|
||||
|
||||
# Update pyproject.toml references (excluding project-config directory)
|
||||
echo "Updating pyproject.toml references..."
|
||||
find /opt/aitbc/scripts -name "*.sh" -type f -exec sed -i 's|/opt/aitbc/pyproject\.toml|/opt/aitbc/project-config/pyproject.toml|g' {} \;
|
||||
find /opt/aitbc/scripts -name "*.py" -type f -exec sed -i 's|/opt/aitbc/pyproject\.toml|/opt/aitbc/project-config/pyproject.toml|g' {} \;
|
||||
|
||||
# Update README.md references
|
||||
echo "Updating README.md references..."
|
||||
find /opt/aitbc/scripts -name "*.sh" -type f -exec sed -i 's|/opt/aitbc/README\.md|/opt/aitbc/documentation/README.md|g' {} \;
|
||||
find /opt/aitbc/scripts -name "*.py" -type f -exec sed -i 's|/opt/aitbc/README\.md|/opt/aitbc/documentation/README.md|g' {} \;
|
||||
|
||||
# Update .gitignore references
|
||||
echo "Updating .gitignore references..."
|
||||
find /opt/aitbc/scripts -name "*.sh" -type f -exec sed -i 's|/opt/aitbc/\.gitignore|/opt/aitbc/project-config/.gitignore|g' {} \;
|
||||
find /opt/aitbc/scripts -name "*.py" -type f -exec sed -i 's|/opt/aitbc/\.gitignore|/opt/aitbc/project-config/.gitignore|g' {} \;
|
||||
|
||||
echo "=== File Reference Updates Complete ==="
|
||||
@@ -144,8 +144,8 @@ setup_venvs() {
|
||||
log "Installing all dependencies from central requirements.txt..."
|
||||
|
||||
# Install main requirements (contains all service dependencies)
|
||||
if [ -f "/opt/aitbc/requirements.txt" ]; then
|
||||
pip install -r /opt/aitbc/requirements.txt
|
||||
if [ -f "/opt/aitbc/project-config/requirements.txt" ]; then
|
||||
pip install -r /opt/aitbc/project-config/requirements.txt
|
||||
else
|
||||
error "Main requirements.txt not found"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user