Skip to content

Commit 97439ea

Browse files
committed
🦜 Staging sunucu yerine birimler/kanaryaSunucu kullan
1 parent 5dfbf2d commit 97439ea

File tree

7 files changed

+28
-114
lines changed

7 files changed

+28
-114
lines changed

Diff for: ‎Makefile

+1-13
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,4 @@ include sunucu/Makefile
1414
clean:
1515
rm -rf build
1616

17-
dev:
18-
node sunucu/dev.js
19-
20-
staging: build
21-
sunucu/staging.py
22-
23-
cf-deployment: build build/sunucu/prod.js build/sitemap sunucu/prod.toml
24-
node lib/cloudflare/uploader sunucu/prod.toml sunucu/Makefile
25-
wrangler deploy \
26-
--config sunucu/prod.toml \
27-
--compatibility-date $(shell date -v -1d +%Y-%m-%d)
28-
29-
.PHONY: cf-deployment cf-trim clean dev staging
17+
.PHONY: clean

Diff for: ‎lib

Diff for: ‎sunucu/Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ build/sitemap.txt:
4040
build/sitemap: $(call compressions, build/sitemap.txt)
4141

4242
.PHONY: build/sitemap
43+
44+
dev:
45+
node lib/birimler/devSunucu --çalıştır sunucu/dev.toml
46+
47+
kanarya: build
48+
node lib/birimler/kanaryaSunucu --çalıştır sunucu/dev.toml
49+
50+
cf-deployment: build build/sunucu/prod.js build/sitemap sunucu/prod.toml
51+
node lib/cloudflare/uploader sunucu/prod.toml sunucu/Makefile
52+
wrangler deploy \
53+
--config sunucu/prod.toml \
54+
--compatibility-date $(shell date -v -1d +%Y-%m-%d)
55+
56+
.PHONY: cf-deployment dev staging

Diff for: ‎sunucu/dev.js

-16
This file was deleted.

Diff for: ‎sunucu/dev.toml

+8
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
port = 8787
22
hostname = "http://localhost"
3+
"kök" = ""
4+
dizin = "ana"
5+
sayfalar = [
6+
["al", "mint"],
7+
["incele", "view"],
8+
["oyla", "vote"],
9+
["iptal", "revoke"]
10+
]

Diff for: ‎sunucu/staging.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { parse } from "toml";
2+
import { çalıştır } from "../../lib/birimler/stagingSunucu.js";
3+
4+
çalıştır(parse(readFileSync("./dev.toml", "utf8")));

Diff for: ‎sunucu/staging.py

-84
This file was deleted.

0 commit comments

Comments
 (0)