Fix: dockerfile
This commit is contained in:
@ -14,7 +14,7 @@ COPY --from=builder /gralias /app/gralias
|
||||
# copy assets and templates
|
||||
COPY assets ./assets
|
||||
COPY components ./components
|
||||
COPY config.example.toml ./config.toml
|
||||
COPY config.toml ./config.toml
|
||||
COPY migrations ./migrations
|
||||
EXPOSE 3000
|
||||
CMD ["/app/gralias"]
|
||||
|
@ -1,7 +1,7 @@
|
||||
BASE_URL = "https://localhost:3000"
|
||||
SESSION_LIFETIME_SECONDS = 30000
|
||||
COOKIE_SECRET = "test"
|
||||
DB_PATH = "sqlite3://gralias.db"
|
||||
DB_PATH = "gralias.db"
|
||||
|
||||
[SERVICE]
|
||||
HOST = "localhost"
|
||||
|
@ -44,7 +44,7 @@ func init() {
|
||||
func NewRepoProvider(pathToDB string) AllRepos {
|
||||
db, err := sqlx.Connect("sqlite3", pathToDB)
|
||||
if err != nil {
|
||||
slog.Error("Unable to connect to database", "error", err)
|
||||
slog.Error("Unable to connect to database", "error", err, "pathToDB", pathToDB)
|
||||
os.Exit(1)
|
||||
}
|
||||
stmts := []string{
|
||||
|
Reference in New Issue
Block a user