init
This commit is contained in:
11
.env
Normal file
11
.env
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
DATABASE_URL=postgresql+asyncpg://print3d:P3D_PASSWORD@31.59.58.220:5432/print3d
|
||||||
|
ANTHROPIC_API_KEY=
|
||||||
|
TELEGRAM_BOT_TOKEN=8730332716:AAFOZeGhWL99-3_s11cWo2GrpeUAMb6Qkw0
|
||||||
|
TELEGRAM_CHAT_ID=-5185688679
|
||||||
|
GOOGLE_API_KEY=AIzaSyAHzDYhgjOqZZnvOnOFRGaSkKu4OAN3kZE
|
||||||
|
MINIO_ENDPOINT=31.59.58.220:9000
|
||||||
|
MINIO_ACCESS_KEY=admin
|
||||||
|
MINIO_SECRET_KEY=SuperSecretPassword123!
|
||||||
|
MINIO_BUCKET=filam3d
|
||||||
|
MINIO_SECURE=false
|
||||||
6
deploy-back.sh
Normal file
6
deploy-back.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
ssh root@31.59.58.220 "
|
||||||
|
cd /root/filam3d &&
|
||||||
|
git pull &&
|
||||||
|
docker compose up -d --build
|
||||||
|
"
|
||||||
8
deploy-front.sh
Normal file
8
deploy-front.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
ssh root@31.59.58.220 "
|
||||||
|
cd /root/filam3d &&
|
||||||
|
git pull &&
|
||||||
|
cd frontend &&
|
||||||
|
npm install &&
|
||||||
|
npm run build &&
|
||||||
|
cp -r dist/* /var/www/bambustore.ru/
|
||||||
|
"
|
||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
build: ./backend
|
build: ./backend
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: ${DATABASE_URL:-postgresql+asyncpg://print3d:print3d_secret@localhost:5432/print3d}
|
DATABASE_URL: ${DATABASE_URL:-postgresql+asyncpg://print3d:P3D_PASSWORD@localhost:5432/print3d}
|
||||||
GOOGLE_API_KEY: ${GOOGLE_API_KEY:-}
|
GOOGLE_API_KEY: ${GOOGLE_API_KEY:-}
|
||||||
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
|
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
|
||||||
TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID:-}
|
TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID:-}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<p class="text-sm font-medium text-primary-700">Итого</p>
|
<p class="text-sm font-medium text-primary-700">Итого</p>
|
||||||
<p class="text-xs text-primary-600">Срок: ~{{ result.calculation.estimated_days }} рабочих дней</p>
|
<p class="text-xs text-primary-600">Срок: ~{{ result.calculation.estimated_days }} рабочих дней</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-2xl font-bold text-primary-700">{{ fmt(result.calculation.total_rub) }} ₽</p>
|
<p class="text-2xl font-bold text-primary-700">~{{ fmt(result.calculation.total_rub) }} ₽</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -42,13 +42,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="mb-3 text-sm font-semibold text-gray-900">Материалы</h3>
|
<h3 class="mb-3 text-sm font-semibold text-gray-900">Материалы</h3>
|
||||||
<ul class="space-y-2">
|
<ul class="space-y-2">
|
||||||
<li class="text-sm text-gray-500">PLA — от 25 ₽/г</li>
|
<li class="text-sm text-gray-500">PLA — от 10 ₽/г</li>
|
||||||
<li class="text-sm text-gray-500">PETG — от 28 ₽/г</li>
|
<li class="text-sm text-gray-500">PETG — от 12 ₽/г</li>
|
||||||
<li class="text-sm text-gray-500">ABS — от 25 ₽/г</li>
|
<li class="text-sm text-gray-500">ABS — от 13 ₽/г</li>
|
||||||
<li class="text-sm text-gray-500">Нейлон — от 50 ₽/г</li>
|
<li class="text-sm text-gray-500">Нейлон — от 20 ₽/г</li>
|
||||||
<li class="text-sm text-gray-500">Поликарбонат — от 60 ₽/г</li>
|
<li class="text-sm text-gray-500">Поликарбонат — от 22 ₽/г</li>
|
||||||
<li class="text-sm text-gray-500">TPU — от 40 ₽/г</li>
|
<li class="text-sm text-gray-500">TPU — от 17 ₽/г</li>
|
||||||
<li class="text-sm text-gray-500">PA-CF — от 75 ₽/г</li>
|
<li class="text-sm text-gray-500">PA-CF — от 45 ₽/г</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user