chore [P-12]: kdkdk
This commit is contained in:
1 parent
c156614ee3
commit
bcdcabb4a1
12 files changed
+312
-44
No files matched your search
+6
-5
@@ -8,20 +8,21 @@ RUN apt-get update && apt-get install -y \
|
||||
pkg-config
|
||||
|
||||
# Копируем файлы зависимостей в контейнер
|
||||
COPY r.txt .
|
||||
COPY src/back/r.txt .
|
||||
|
||||
# Устанавливаем зависимости
|
||||
RUN pip install -r r.txt
|
||||
|
||||
# Копируем все файлы проекта в контейнер
|
||||
COPY . .
|
||||
|
||||
COPY src/back/ .
|
||||
COPY sys/wait-for-it.sh /usr/local/bin/wait-for-it
|
||||
# Выполняем миграции (при необходимости)
|
||||
# RUN python manage.py makemigrations
|
||||
# RUN python manage.py migrate
|
||||
|
||||
RUN chmod +x /usr/local/bin/wait-for-it
|
||||
# Открываем порт, на котором будет работать приложение
|
||||
EXPOSE 8000
|
||||
|
||||
# Команда для запуска приложения
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
# CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
CMD ["wait-for-it", "db:3306", "--", "python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
@@ -43,7 +43,7 @@ CSRF_TRUSTED_ORIGINS = [
|
||||
'http://127.0.0.1',
|
||||
'http://yourdomain.com', # Add your production domain here
|
||||
]
|
||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','127.0.0.1']
|
||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','0.0.0.0']
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.85",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
<template v-if="accountStore.cod2user">
|
||||
<vcard-user :author="accountStore.user" />
|
||||
<v-tooltip location="bottom">
|
||||
|
||||
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn color="black_and_white" v-bind="props" dark to="/faq" icon="mdi-comment-question-outline" />
|
||||
</template>
|
||||
|
||||
@@ -25,11 +25,14 @@ export default {
|
||||
const feedalert = useAlertStore().alert;
|
||||
|
||||
watch(
|
||||
|
||||
() => feedalert,
|
||||
() => {
|
||||
setTimeout(function () {
|
||||
feedalert.text = "";
|
||||
feedalert.ico = "";
|
||||
|
||||
|
||||
feedalert.color = "";
|
||||
feedalert.alert = false;
|
||||
}, 8000);
|
||||
|
||||
@@ -38,5 +38,9 @@ export default defineConfig({
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3000,
|
||||
hmr:{
|
||||
host: '0.0.0.0',
|
||||
port: 3000,
|
||||
}
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user