Fix server upload issue
This commit is contained in:
parent
9fe7dad24f
commit
343a7edc9c
3 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,8 @@ Rename =variables-template.py= to =variables.py= and edit:
|
||||||
- =endlessgames=: a list of “endless” games in the format =title (console)=
|
- =endlessgames=: a list of “endless” games in the format =title (console)=
|
||||||
- =orgpath=: absolute path to the root directory in which =.org= files are stored, including trailing slash
|
- =orgpath=: absolute path to the root directory in which =.org= files are stored, including trailing slash
|
||||||
- =localpath=: absolute path to this directory, including trailing slash
|
- =localpath=: absolute path to this directory, including trailing slash
|
||||||
- =serverpath=: path to directory on the server where files will be uploaded (following =rclone= syntax, this will start with the name of the server, followed by a colon)
|
- =serverpath=: path to directory on the server where files will be uploaded, including trailing slash
|
||||||
|
- =rclonesiteroot=: path =rclone= uses to access your webserver
|
||||||
- =description=: content for the “about” section (can include HTML tags)
|
- =description=: content for the “about” section (can include HTML tags)
|
||||||
- =hue=: theme colour expressed as a hue from 0 to 360
|
- =hue=: theme colour expressed as a hue from 0 to 360
|
||||||
- =consoles=: add or remove consoles following the format provided (=.png= images must be added to the build directory with a filename corresponding with the value of ="img"= for each console)
|
- =consoles=: add or remove consoles following the format provided (=.png= images must be added to the build directory with a filename corresponding with the value of ="img"= for each console)
|
||||||
|
|
2
init.py
2
init.py
|
@ -2,4 +2,4 @@ import variables
|
||||||
|
|
||||||
script = open("build.sh", "a")
|
script = open("build.sh", "a")
|
||||||
|
|
||||||
script.write("#!/usr/bin/env bash\npython3 generate.py\nrclone copy build " + variables.serverpath + " -P")
|
script.write("#!/usr/bin/env bash\npython3 generate.py\nrclone copy build " + variables.rclonesiteroot + variables.serverpath + " -P")
|
||||||
|
|
|
@ -10,6 +10,8 @@ localpath = ""
|
||||||
|
|
||||||
serverpath = ""
|
serverpath = ""
|
||||||
|
|
||||||
|
rcloneaddress = ""
|
||||||
|
|
||||||
description = ""
|
description = ""
|
||||||
|
|
||||||
hue =
|
hue =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue