From 72a36b330516211b9ab919bd368a97f2f4474457 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Thu, 18 Jul 2024 00:46:33 -0600 Subject: [PATCH] Move ProgramPort and LaunchBrowser into .args --- TODO.txt | 1 - assets/.args | 4 ++++ assets/.init.lua | 4 +--- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 assets/.args diff --git a/TODO.txt b/TODO.txt index d3b0088..4f12257 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,4 +1,3 @@ -Move ServerPort and LaunchBrowser into .args so they can be overridden in makefile Write a makefile rule to run tests in redbean Set up page routes Figure out how Lua Server Pages work diff --git a/assets/.args b/assets/.args new file mode 100644 index 0000000..d98f205 --- /dev/null +++ b/assets/.args @@ -0,0 +1,4 @@ +-p +0 +-w +/ \ No newline at end of file diff --git a/assets/.init.lua b/assets/.init.lua index 4c5cc1d..c1d55b1 100644 --- a/assets/.init.lua +++ b/assets/.init.lua @@ -1,5 +1,3 @@ -LaunchBrowser() - local migrate = require "migrate" local DB_FILENAME = "peachy.db" @@ -7,7 +5,7 @@ sqlite3 = require "lsqlite3" local db = sqlite3.open(DB_FILENAME) db:exec("PRAGMA journal_mode=WAL") db:exec("PRAGMA foreign_keys") -migrate.migrate(db) +-- migrate.migrate(db) fm = require "fullmoon" fm.setTemplate({"/tmpl/", tmpl = "fmt"})