رفع الملفات إلى "/"
هذا الالتزام موجود في:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# نسخ المشروع
|
||||
COPY backend/ ./backend/
|
||||
COPY dist/ ./dist/
|
||||
|
||||
# تثبيت الأدوات
|
||||
RUN apt update && apt install -y postgresql-client && \
|
||||
pip install --no-cache-dir -r backend/requirements.txt gunicorn
|
||||
|
||||
# متغيرات بيئية للـ URIs
|
||||
ENV FLASK_APP=backend/app.py
|
||||
ENV PORT=8000
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "backend.app:app"]
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Universal Database Migrator
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
ثنائية
__init__.py
Normal file
ثنائية
__init__.py
Normal file
ملف ثنائي غير معروض.
2070
app.py
Normal file
2070
app.py
Normal file
تم حذف اختلاف الملف لأن الملف كبير جداً
تحميل الاختلاف
25
unified_migration.env
Normal file
25
unified_migration.env
Normal file
@@ -0,0 +1,25 @@
|
||||
# ==================== Source MySQL Configuration ====================
|
||||
SOURCE_MYSQL_HOST=localhost
|
||||
SOURCE_MYSQL_PORT=3306
|
||||
SOURCE_MYSQL_USER=root
|
||||
SOURCE_MYSQL_PASSWORD=secret123
|
||||
SOURCE_MYSQL_DATABASE=sourcedb
|
||||
SOURCE_MYSQL_CHARSET=utf8mb4
|
||||
|
||||
# Source SSL (اختياري)
|
||||
# SOURCE_MYSQL_SSL_CA=/path/to/ca.pem
|
||||
# SOURCE_MYSQL_SSL_CERT=/path/to/cert.pem
|
||||
# SOURCE_MYSQL_SSL_KEY=/path/to/key.pem
|
||||
|
||||
# ==================== Destination MySQL Configuration ====================
|
||||
DEST_MYSQL_HOST=192.168.1.100
|
||||
DEST_MYSQL_PORT=3306
|
||||
DEST_MYSQL_USER=admin
|
||||
DEST_MYSQL_PASSWORD=admin456
|
||||
DEST_MYSQL_DATABASE=destdb
|
||||
DEST_MYSQL_CHARSET=utf8mb4
|
||||
|
||||
# Destination SSL (اختياري)
|
||||
# DEST_MYSQL_SSL_CA=/path/to/ca.pem
|
||||
# DEST_MYSQL_SSL_CERT=/path/to/cert.pem
|
||||
# DEST_MYSQL_SSL_KEY=/path/to/key.pem
|
||||
المرجع في مشكلة جديدة
حظر مستخدم