Skip to content

Commit

Permalink
Move resources to a common directory
Browse files Browse the repository at this point in the history
To make sure they are available at runtime.
  • Loading branch information
zdevaty committed Dec 18, 2023
1 parent fe77f7e commit 496dd7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FROM eliona/base-alpine:latest AS target

COPY --from=build /app ./
COPY conf/*.sql ./conf/
# COPY eliona/*.json ./eliona/
COPY resources/ ./resources/
COPY openapi.yaml ./
COPY metadata.json ./

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func main() {
// Init the app before the first run.
app.Init(db.Pool(), app.AppName(),
app.ExecSqlFile("conf/init.sql"),
asset.InitAssetTypeFiles("eliona/asset-type-*.json"),
dashboard.InitWidgetTypeFiles("eliona/widget-type-*.json"),
asset.InitAssetTypeFiles("resources/asset-types/*.json"),
dashboard.InitWidgetTypeFiles("resources/widget-types/*.json"),
)

// Starting the service to collect the data for this app.
Expand Down

0 comments on commit 496dd7b

Please sign in to comment.