From 4aced43e43ae4f0a88a777370a7471aecb0dc093 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Sun, 10 Mar 2024 16:47:52 -0600 Subject: add required args --- html/build.sh | 2 ++ html/public/fruitvote/GoPage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'html') diff --git a/html/build.sh b/html/build.sh index b12230e..16de894 100755 --- a/html/build.sh +++ b/html/build.sh @@ -15,6 +15,8 @@ mkdir -p ../dist/fruitvote cd fruitvote go build -o ../../dist/fruitvote/fruitvote cp start.sh ../../dist/fruitvote/start.sh +cp -r templates ../../dist/fruitvote/templates +cp -r fruits.json ../../dist/fruitvote/fruits.json cd .. echo "finished building HTML" diff --git a/html/public/fruitvote/GoPage.php b/html/public/fruitvote/GoPage.php index 7e03c35..d71f545 100644 --- a/html/public/fruitvote/GoPage.php +++ b/html/public/fruitvote/GoPage.php @@ -4,7 +4,7 @@ class GoPage { private $socket; private $template; - public function __construct($page, $socket = "/home/lizzy/fruitvote/http.sock", $template = "../template.html") { + public function __construct($page, $socket = "/home/simponic/fruitvote/http.sock", $template = "../template.html") { $this->page = $page; $this->socket = $socket; $this->template = $template; -- cgit v1.2.3-70-g09d2