Skip to content
Snippets Groups Projects
Verified Commit 3753193c authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Updated demo script

parent 94bb2938
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,10 @@ music_path="/usr/share/music"
demo_path="/srv/funkwhale-demo/demo"
echo 'Cleaning everything...'
cd $demo_path
docker-compose down -v || echo 'Nothing to stop'
rm -rf /srv/funkwhale-demo/demo*
rm -rf /srv/funkwhale-demo/demo/*
mkdir -p $demo_path
cd $demo_path
echo 'Downloading demo files...'
curl -L -o docker-compose.yml "https://code.eliotberriot.com/funkwhale/funkwhale/raw/$version/deploy/docker-compose.yml"
curl -L -o .env "https://code.eliotberriot.com/funkwhale/funkwhale/raw/$version/deploy/env.prod.sample"
......@@ -25,5 +25,5 @@ echo "FUNKWHALE_VERSION=$version" >> .env
echo "FUNKWHALE_API_PORT=5001" >> .env
docker-compose pull
docker-compose run --rm api "sleep 5; demo/load-demo-data.sh"
docker-compose run --rm api bash -c "sleep 5; demo/load-demo-data.sh"
docker-compose up -d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment