1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 02:29:47 +02:00

update: working version compatible with the latest version of silk and antd
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good

This commit is contained in:
DanyLE
2023-05-22 13:53:41 +02:00
parent a05507123c
commit b65bee0323
8 changed files with 23 additions and 30 deletions

View File

@ -7,8 +7,8 @@ require("silk.api")
-- crypto lib
enc = require("enc")
WWW_ROOT = __ROOT__.."/blog"
-- TODO: change me
DB_FILE = "/home/dany/databases/mrsang.db"
DB_LOC="/opt/www/databases"
DB_FILE = DB_LOC.."/mrsang.db"
-- add aditional paths
package.path = package.path..";"..WWW_ROOT .. '/?.lua'
@ -18,8 +18,7 @@ if HEADER.Host then
else
HTTP_ROOT = "https://blog.iohub.dev"
end
-- TODO remove me
HTTP_ROOT = HTTP_ROOT.."/next/blog"
CONTROLLER_ROOT = "blog.controllers"
MODEL_ROOT = "blog.models"
-- file path: path/to/file