Skip to content

Commit

Permalink
Start spotify reader in production environment too
Browse files Browse the repository at this point in the history
  • Loading branch information
paramsingh committed Mar 18, 2019
1 parent 2b711ed commit 40388a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/prod/uwsgi/uwsgi.service
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ then
exec python manage.py run_follow_server -h 0.0.0.0 -p 3031
fi

if [ "${CONTAINER_NAME}" = "listenbrainz-spotify-reader-prod" ]
then
cd /code/listenbrainz
exec python3 -m listenbrainz.spotify_updater.spotify_read_listens
fi


echo "init script has no clue which service to start. Set env var CONTAINER_NAME!"

0 comments on commit 40388a0

Please sign in to comment.