1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Fix some stuff

This commit is contained in:
Lukas Schulte Pelkum
2021-04-15 20:59:32 +02:00
parent 1792ef1c38
commit 681ee9f1d0
3 changed files with 29 additions and 30 deletions

View File

@@ -4,7 +4,7 @@ import (
"log"
"os"
"github.com/lus/pasty/internal/env"
"github.com/lus/pasty/internal/config"
"github.com/lus/pasty/internal/shared"
"github.com/lus/pasty/internal/storage"
)
@@ -15,9 +15,9 @@ func main() {
panic("Invalid command line arguments")
}
// Load the optional .env file
log.Println("Loading the optional .env file...")
env.Load()
// Load the configuration
log.Println("Loading the application configuration...")
config.Load()
// Create and initialize the first (from) driver
from, err := storage.GetDriver(shared.StorageType(os.Args[1]))