Compare commits
8
Commits
ab76686b8b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5dea46a451 | ||
|
|
c848a33f06 | ||
|
|
aec4aa2b5a | ||
|
|
e334a2371d | ||
|
|
4e11b333bb | ||
|
|
c6a70579cc | ||
|
|
fb7aa22946 | ||
|
|
0addef89a4 |
@@ -0,0 +1,10 @@
|
|||||||
|
node_modules
|
||||||
|
.git
|
||||||
|
.next
|
||||||
|
.turbo
|
||||||
|
dist
|
||||||
|
*.log
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
.DS_Store
|
||||||
|
*.md
|
||||||
Generated
+8
@@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
Generated
+9
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
|
</profile>
|
||||||
|
</component>
|
||||||
Generated
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="temurin-21" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+8
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/editor.iml" filepath="$PROJECT_DIR$/.idea/editor.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
+44
@@ -0,0 +1,44 @@
|
|||||||
|
# ---- Сборка ----
|
||||||
|
FROM oven/bun:1 AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Копируем только нужное для установки
|
||||||
|
COPY package.json bun.lock ./
|
||||||
|
COPY turbo.json ./
|
||||||
|
COPY biome.jsonc ./
|
||||||
|
|
||||||
|
# Копируем исходники
|
||||||
|
COPY packages ./packages
|
||||||
|
COPY tooling ./tooling
|
||||||
|
COPY apps ./apps
|
||||||
|
|
||||||
|
# Устанавливаем зависимости
|
||||||
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
|
# Исправляем путь в globals.css (заменяем @/ на ../)
|
||||||
|
RUN sed -i 's|@/styles/elevation.css|../styles/elevation.css|g' apps/editor/app/globals.css
|
||||||
|
|
||||||
|
# Создаём символическую ссылку, чтобы папка styles была доступна из apps/editor
|
||||||
|
RUN ln -s /app/styles /app/apps/editor/styles
|
||||||
|
|
||||||
|
# Собираем
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
# ---- Продакшен ----
|
||||||
|
FROM oven/bun:1
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Копируем собранные артефакты
|
||||||
|
COPY --from=builder /app/packages ./packages
|
||||||
|
COPY --from=builder /app/tooling ./tooling
|
||||||
|
COPY --from=builder /app/apps ./apps
|
||||||
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
COPY --from=builder /app/package.json ./
|
||||||
|
COPY --from=builder /app/bun.lock ./
|
||||||
|
|
||||||
|
WORKDIR /app/apps/editor
|
||||||
|
|
||||||
|
EXPOSE 3002
|
||||||
|
CMD ["bun", "run", "start"]
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
|
# Быстрая установка из готового образа:
|
||||||
|
|
||||||
|
###
|
||||||
|
Скачать образ: https://cdn.s3.mshart.ru/cloud/docker/images/pascal-editor.tar
|
||||||
|
###
|
||||||
|
залить на сервер и выполнить:
|
||||||
|
```bash
|
||||||
|
docker load -i pascal-editor.tar
|
||||||
|
docker run -d --name pascal-editor -p 3002:3000 editor-editor:latest
|
||||||
|
```
|
||||||
|
|
||||||
# Pascal Editor
|
# Pascal Editor
|
||||||
|
|
||||||
A 3D building editor built with React Three Fiber and WebGPU.
|
A 3D building editor built with React Three Fiber and WebGPU.
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
services:
|
||||||
|
editor:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
container_name: pascal-editor
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "3002:3002"
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
- PORT=3002
|
||||||
Reference in New Issue
Block a user