Fix paths. Adapt gitignore

This commit is contained in:
Jan Eitzinger 2022-06-23 18:27:42 +02:00
parent f0dab0e229
commit f291aa2f8c
3 changed files with 7 additions and 6 deletions

5
.gitignore vendored
View File

@ -1,5 +1,4 @@
# executable:
cc-backend
/cc-backend
/var/job-archive
/var/*.db
@ -8,3 +7,5 @@ cc-backend
/.env
/config.json
/web/frontend/public/build
/web/frontend/node_modules

View File

@ -100,7 +100,7 @@ type ProgramConfig struct {
var programConfig ProgramConfig = ProgramConfig{
Addr: ":8080",
DisableAuthentication: false,
StaticFiles: "./frontend/public",
StaticFiles: "./web/frontend/public",
DBDriver: "sqlite3",
DB: "./var/job.db",
JobArchive: "./var/job-archive",

View File

@ -13,8 +13,8 @@ yarn install
yarn build
cd ../..
cp ./configs/env-template.txt .env
go get
go build cmd/cc-backend
go build ./cmd/cc-backend
./cc-backend --init-db --add-user demo:admin:AdminDev --no-server
./cc-backend
./cc-backend --init-db --add-user demo:admin:AdminDev