fix(docs): update fake data command
This commit is contained in:
parent
b50bfc5305
commit
f88faa238a
|
@ -264,8 +264,7 @@ You can create local data to mimic a live environment.
|
||||||
Add some fake data to populate the database. The following command creates 25 artists with random albums, tracks, and metadata.
|
Add some fake data to populate the database. The following command creates 25 artists with random albums, tracks, and metadata.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
command="from funkwhale_api.music import fake_data; fake_data.create_data()"
|
docker compose exec -T api funkwhale-manage shell -i python <<< "from funkwhale_api.music import fake_data; fake_data.create_data(super_user_name='YOURNAMEHERE')"
|
||||||
echo $command | docker compose run --rm -T api funkwhale-manage shell -i python
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This will launch a development funkwhale instance with a super user having `COMPOSE_PROJECT_NAME` as username and `funkwhale` as password. Libraries, listenings and music data will be associated with the superuser :
|
This will launch a development funkwhale instance with a super user having `COMPOSE_PROJECT_NAME` as username and `funkwhale` as password. Libraries, listenings and music data will be associated with the superuser :
|
||||||
|
|
Loading…
Reference in New Issue