@@ -1,3 +1,4 @@
data
.git
+.vscode
.drone.yml
@@ -18,7 +18,7 @@ steps:
- name: deploy
commands:
- - docker run --detach --name ${DRONE_REPO_NAME} --restart always -v /var/www/post/data:/data -p 8000:8000 ${DRONE_REPO_NAME}:rev${DRONE_BUILD_NUMBER}
+ - docker run --detach --name ${DRONE_REPO_NAME} --restart always -v /var/www/post/data:/app/data -p 8000:8000 ${DRONE_REPO_NAME}:rev${DRONE_BUILD_NUMBER}
trigger:
branch:
@@ -1,7 +1,7 @@
import { DB } from "$sqlite/mod.ts";
function prepareDB(tableName: string) {
- const db = new DB("./data/postdown.db");
+ const db = new DB("data/postdown.db");
switch (tableName) {
case "User":
db.execute(`