This commit is contained in:
parent
def61909c2
commit
4aced43e43
@ -15,6 +15,8 @@ mkdir -p ../dist/fruitvote
|
|||||||
cd fruitvote
|
cd fruitvote
|
||||||
go build -o ../../dist/fruitvote/fruitvote
|
go build -o ../../dist/fruitvote/fruitvote
|
||||||
cp start.sh ../../dist/fruitvote/start.sh
|
cp start.sh ../../dist/fruitvote/start.sh
|
||||||
|
cp -r templates ../../dist/fruitvote/templates
|
||||||
|
cp -r fruits.json ../../dist/fruitvote/fruits.json
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "finished building HTML"
|
echo "finished building HTML"
|
||||||
|
@ -4,7 +4,7 @@ class GoPage {
|
|||||||
private $socket;
|
private $socket;
|
||||||
private $template;
|
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->page = $page;
|
||||||
$this->socket = $socket;
|
$this->socket = $socket;
|
||||||
$this->template = $template;
|
$this->template = $template;
|
||||||
|
@ -3,7 +3,7 @@ Description=fruitvote
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/nice -n 19 /home/simponic/fruitvote/fruitvote --socket-path /home/simponic/fruitvote/http.sock --users nginx,simponic
|
ExecStart=/usr/bin/nice -n 19 /home/simponic/fruitvote/fruitvote --socket-path /home/simponic/fruitvote/http.sock --users nginx,simponic --template /home/simponic/fruitvote/templates --fruits /home/simponic/fruitvote/fruits.json --database /home/simponic/fruitvote/fruitvote.db
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user