adding token to volume
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
certbot/
|
||||
backend/token/
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -55,6 +55,8 @@ services:
|
||||
- app-network
|
||||
env_file:
|
||||
- ./.env
|
||||
volumes:
|
||||
- ./backend/token/:/backend/token
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
|
||||
Reference in New Issue
Block a user