···6767[group("local-devel")]
6868local-devel-prep: create-data-dirs
6969 dbmate up
7070-7070+ # I don't know if I want to build for the devmode script?
7171+ # May also make the user from the app, if debug mode is detected.
7272+ touch data/debug
71737274[doc("Run the server in development mode")]
7375[group("local-devel")]
+18
server/dev/devmode.gleam
···11+import gleam/string
22+import simplifile
33+import sqlight
44+55+/// This will generate the testing username-password combinations defined in the README, as well
66+/// as a `/data/debug` file, which sets log levels to... Yup! To debug instead of Info
77+pub fn main() {
88+ case simplifile.create_file("../data/debug") {
99+ Ok(..) | Error(simplifile.Eexist) -> Nil
1010+ Error(fuck) -> {
1111+ let fucking_error = string.inspect(fuck)
1212+ panic as fucking_error
1313+ }
1414+ }
1515+ use db <- sqlight.with_connection("../data/instance.db")
1616+ // todo as "The database changes for creating a user are yet unknown."
1717+ Nil
1818+}
+7-1
server/src/lumina_server.gleam
···7373}
74747575pub fn main() {
7676+ let debug = simplifile.is_file("/data/debug") == Ok(True)
7677 use db <- sqlight.with_connection("/data/instance.db")
7778 // At some point everything should go here, I think.
7879 // woof.set_sink(woof.beam_logger_sink)
···90919192 // Logging
9293 woof.configure(woof.Config(
9393- level: woof.Debug,
9494+ level: {
9595+ case debug {
9696+ True -> woof.Debug
9797+ False -> woof.Info
9898+ }
9999+ },
94100 format: woof.Text,
95101 colors: woof.Auto,
96102 ))