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:
@@ -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]))
|
||||
|
Reference in New Issue
Block a user