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