Moved away from local files to complete database driven articles

This commit is contained in:
2021-12-20 23:10:04 +01:00
parent bc3ec64b3c
commit c909339a73
20 changed files with 302 additions and 299 deletions

View File

@@ -10,7 +10,9 @@ var (
ServerPort string
DatabaseFile string
DatabaseFile string
ArticleTemplate string
FrontendDir string
)
func init() {
@@ -21,4 +23,6 @@ func init() {
ServerPort = os.Getenv("SERVER_PORT")
DatabaseFile = os.Getenv("DATABASE_FILE")
ArticleTemplate = os.Getenv("ARTICLE_TEMPLATE")
FrontendDir = os.Getenv("FRONTEND_DIR")
}