This commit is contained in:
@@ -24,3 +24,6 @@ tasks:
|
|||||||
- node -r @swc-node/register src/app.ts
|
- node -r @swc-node/register src/app.ts
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
update-server:
|
||||||
|
cmds:
|
||||||
|
- ssh -t sorvor-p "docker compose pull && docker compose up -d"
|
||||||
|
|||||||
@@ -21,7 +21,10 @@ export const Groups = [
|
|||||||
"กลุ่มอื่นๆ",
|
"กลุ่มอื่นๆ",
|
||||||
];
|
];
|
||||||
|
|
||||||
export const Opinions: { name: string; choicemode: "3Choice" | "4Choice" }[] = [
|
export const Opinions: {
|
||||||
|
name: string;
|
||||||
|
choicemode: "3Choice" | "4Choice" | "5Choice";
|
||||||
|
}[] = [
|
||||||
{ name: "สว. มีอำนาจโหวตเลือกนายกรัฐมนตรี", choicemode: "3Choice" },
|
{ name: "สว. มีอำนาจโหวตเลือกนายกรัฐมนตรี", choicemode: "3Choice" },
|
||||||
{ name: "แก้ไขรัฐธรรมนูญ 2560", choicemode: "3Choice" },
|
{ name: "แก้ไขรัฐธรรมนูญ 2560", choicemode: "3Choice" },
|
||||||
{ name: "เขียนรัฐธรรมนูญใหม่ “ทั้งฉบับ”", choicemode: "3Choice" },
|
{ name: "เขียนรัฐธรรมนูญใหม่ “ทั้งฉบับ”", choicemode: "3Choice" },
|
||||||
|
|||||||
@@ -4,5 +4,6 @@ import Database from "better-sqlite3";
|
|||||||
import * as schema from "./schema";
|
import * as schema from "./schema";
|
||||||
|
|
||||||
const sqlite = new Database("sqlite.db");
|
const sqlite = new Database("sqlite.db");
|
||||||
|
sqlite.pragma("journal_mode = WAL");
|
||||||
export const db = drizzle(sqlite, { schema });
|
export const db = drizzle(sqlite, { schema });
|
||||||
migrate(db, { migrationsFolder: "drizzle" });
|
migrate(db, { migrationsFolder: "drizzle" });
|
||||||
|
|||||||
Reference in New Issue
Block a user