diff --git a/.gitignore b/.gitignore index 8d3b4fb..e282f96 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ certbot/ +backend/token/ diff --git a/backend/services/spotify.go b/backend/services/spotify.go index f2d202b..bfc732c 100644 --- a/backend/services/spotify.go +++ b/backend/services/spotify.go @@ -19,7 +19,7 @@ type SpotifyConfig struct { ClientSecret string } -const SPOTIFY_TOKEN_JSON_PATH = "spotify_token.json" +const SPOTIFY_TOKEN_JSON_PATH = "/backend/token/spotify_token.json" func SaveSpotifyToken(path string, tok *oauth2.Token) error { data := struct { diff --git a/docker-compose.yml b/docker-compose.yml index 68e3240..01bbb19 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,6 +55,8 @@ services: - app-network env_file: - ./.env + volumes: + - ./backend/token/:/backend/token db: image: postgres:16