You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry if I'm missing something really obvious, I don't have any previous experience with go and I'm trying to run this :)
I tried it in two different servers (debian 9 and ubuntu 19.10) with the same results..
got the latest version of go
go get -u github.com/nektro/andesite
I see it gets and auto compiles to ~/go/bin/andesite so I tried to run this first and the result is
2019-11-27 22:33:04: Initializing Andesite...
2019-11-27 22:33:04: Reading configuration from /home/rafa/.config/andesite/config.json
2019-11-27 22:33:04: statik/fs: no zip data registered
then I went to ~/go/src/github.com/nektro/andesite
the missing step is located in scripts/build_all.sh but thanks for reminding me I missed this out in the Development section of the README. In order to fix this issue you also have to run:
go get -v -u github.com/rakyll/statik
and then from within, $GOPATH/src/github.com/nektro/andesite then also run:
$GOPATH/bin/statik -src="./www/"
this will use the statik program to pack the www/ folder into the code so that when you run go build the assets will be built into the binary.
however, as this step is only done during local development, and is done automatically during the automated builds I should make it so that this error is not thrown when statik is not ran.
It's working perfect now! 😄 this is exact what I needed for my project, really easy to add my discord friends by id, etc. so it embeds the /www/ in the binary and uses the embedded stuff only if it can't find the www folder, correct? thank you again 👍
Yes, statik is used so that the www/ assets can be embedded and Andesite can be used as a standalone binary. However, having a local www/ folder or using a theme allows you to override the use of the embedded assets.
sorry if I'm missing something really obvious, I don't have any previous experience with go and I'm trying to run this :)
I tried it in two different servers (debian 9 and ubuntu 19.10) with the same results..
I see it gets and auto compiles to ~/go/bin/andesite so I tried to run this first and the result is
2019-11-27 22:33:04: Initializing Andesite...
2019-11-27 22:33:04: Reading configuration from /home/rafa/.config/andesite/config.json
2019-11-27 22:33:04: statik/fs: no zip data registered
then I went to ~/go/src/github.com/nektro/andesite
(same result)
last thing I tried was changing my config.json to
{
"version": 2,
"root": "/home/rafa",
"public": "/home/rafa/public",
"port": 8000
}
which made no difference
any help would be appreciated, thank you
The text was updated successfully, but these errors were encountered: