21 lines
702 B
Plaintext
21 lines
702 B
Plaintext
#nur einmal
|
|
go mod init cyoa
|
|
|
|
# kompilieren
|
|
go build -o cyoa-engine main.go
|
|
|
|
# Ausführen & Validieren:
|
|
./cyoa-engine -dir ./stories -out export/story.html
|
|
|
|
./cyoa-engine -dir ./stories -serve -port 8080
|
|
# Wenn du jetzt in Neovim Dateien abspeicherst oder neue `[[node_id]]`-Knoten anlegst, musst du im
|
|
# Browser nur `http://localhost:8080` aufrufen und siehst sofort deine Änderungen inkl. vollständiger Link-Prüfung!
|
|
|
|
# baue das docker image
|
|
|
|
docker build -t asciidoctor-echo -f Dockerfile.echobox .
|
|
|
|
|
|
# run with test volumes
|
|
docker run --rm -v "$(pwd)/stories:/weltraum/stories" -v "$(pwd)/export:/weltraum/export" -p "6699:3344" asciidoctor-echo ./cyoa-engine -dir ./stories/ -serve -port 3344
|