pip 换源

This commit is contained in:
xie7654
2025-07-04 13:19:49 +08:00
parent a5807e3fba
commit c6c8b4e63f
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ RUN apt-get update && \
COPY requirements.txt . COPY requirements.txt .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
COPY . . COPY . .
CMD ["sh", "-c", "sleep 10 && python manage.py runserver 0.0.0.0:8000"] CMD ["sh", "-c", "sleep 10 && python manage.py runserver 0.0.0.0:8000"]

View File

@@ -93,7 +93,7 @@ DATABASES = {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'django_vue', 'NAME': 'django_vue',
'USER': 'root', 'USER': 'root',
'PASSWORD': '', 'PASSWORD': 'my-secret-pw',
'HOST': os.getenv('DATABASE_HOST', 'localhost'), 'HOST': os.getenv('DATABASE_HOST', 'localhost'),
# 'HOST': 'localhost', # 'HOST': 'localhost',
} }