Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Organize Docker deployment files
This commit is contained in:
@@ -78,7 +78,7 @@ Requirements:
|
||||
Build and start SketchForge:
|
||||
|
||||
```bash
|
||||
docker compose up --build -d
|
||||
npm run docker:up
|
||||
```
|
||||
|
||||
Open it on the server:
|
||||
@@ -96,20 +96,20 @@ http://SERVER_IP:3000/
|
||||
To use another host port:
|
||||
|
||||
```bash
|
||||
SKETCHFORGE_PORT=8080 docker compose up --build -d
|
||||
SKETCHFORGE_PORT=8080 npm run docker:up
|
||||
```
|
||||
|
||||
On PowerShell:
|
||||
|
||||
```powershell
|
||||
$env:SKETCHFORGE_PORT = "8080"
|
||||
docker compose up --build -d
|
||||
npm run docker:up
|
||||
```
|
||||
|
||||
Stop the server with:
|
||||
|
||||
```bash
|
||||
docker compose down
|
||||
npm run docker:down
|
||||
```
|
||||
|
||||
### Manual Static Deployment (Advanced)
|
||||
@@ -138,7 +138,7 @@ npm run build
|
||||
Remove-Item Env:STATIC_EXPORT
|
||||
```
|
||||
|
||||
The deployable files are generated in `apps/web/out`. Configure the web server to serve that directory and fall back to `index.html` for unknown application paths. [`deploy/nginx.conf`](deploy/nginx.conf) is the configuration used by the Docker image and can be adapted for a manual Nginx installation.
|
||||
The deployable files are generated in `apps/web/out`. Configure the web server to serve that directory and fall back to `index.html` for unknown application paths. [`deploy/docker/nginx.conf`](deploy/docker/nginx.conf) is the configuration used by the Docker image and can be adapted for a manual Nginx installation.
|
||||
|
||||
The administrator must also open the chosen LAN port in the server firewall and arrange for the web server to start automatically after a reboot. For each SketchForge update, pull the new source, install dependencies, rebuild `apps/web/out`, replace the served files, and reload the web server.
|
||||
|
||||
@@ -173,6 +173,7 @@ apps/web/src/generated/ Generated Manifold runtime source
|
||||
apps/web/src/lib/ Shared utilities
|
||||
apps/web/public/assets/ Static app images, icons, logos, shape assets
|
||||
docs/media/ README screenshots and demo videos
|
||||
deploy/docker/ Docker, Compose, and Nginx deployment files
|
||||
.github/ Issue templates and community files
|
||||
```
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ RUN npm run build
|
||||
|
||||
FROM nginx:stable-alpine AS runner
|
||||
|
||||
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY deploy/docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/apps/web/out /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
@@ -2,8 +2,8 @@ services:
|
||||
sketchforge:
|
||||
image: sketchforge:local
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
context: ../..
|
||||
dockerfile: deploy/docker/Dockerfile
|
||||
ports:
|
||||
- "${SKETCHFORGE_PORT:-3000}:80"
|
||||
restart: unless-stopped
|
||||
+4
-2
@@ -12,8 +12,10 @@
|
||||
"test:watch": "vitest --config tests/vitest.config.ts",
|
||||
"perf": "vitest run --config tests/vitest.perf.config.ts --reporter verbose",
|
||||
"ci": "npm run typecheck && npm run test",
|
||||
"docker:build": "docker build -t sketchforge:local .",
|
||||
"docker:run": "docker run --rm -p 3000:80 sketchforge:local"
|
||||
"docker:build": "docker build -f deploy/docker/Dockerfile -t sketchforge:local .",
|
||||
"docker:run": "docker run --rm -p 3000:80 sketchforge:local",
|
||||
"docker:up": "docker compose -f deploy/docker/compose.yaml up --build -d",
|
||||
"docker:down": "docker compose -f deploy/docker/compose.yaml down"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/postcss": "^4.1.8",
|
||||
|
||||
Reference in New Issue
Block a user