aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}