aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-13 23:25:26 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-13 23:25:26 -0500
commitfa63d31876bb522d6bd3dd2322c6f55f5c667a9c (patch)
tree656eff7eba2f4de2bd35db222ee7fe9e75f7ce73
parent6cfc9a99c046f2bc52d3a976aff03fdcd4b94180 (diff)
add README.md, .gitignore
-rw-r--r--.gitignore1
-rw-r--r--README.md2
-rw-r--r--conf/conf.go3
3 files changed, 5 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b923b6d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.newsstandrc.toml
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cae230c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+# Newsstand
+A simple bulletin board for text, images, videos, and links.
diff --git a/conf/conf.go b/conf/conf.go
index b9dadcd..d135fcb 100644
--- a/conf/conf.go
+++ b/conf/conf.go
@@ -13,6 +13,7 @@ type Conf struct {
}
func Load() *Conf {
+
filepath := os.Getenv("NEWSSTAND_CONFIG_PATH")
if filepath == "" {
workingdir, err := os.Getwd()
@@ -28,7 +29,7 @@ func Load() *Conf {
if err != nil {
log.Fatalln(err)
}
- log.Println(c)
+ log.Println(c.DbAdapter)
return &c
}