Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Walko
funkwhale
Commits
12638e1d
Verified
Commit
12638e1d
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Updated demo script
parent
60412ad5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/demo/demo-user.py
+1
-0
1 addition, 0 deletions
api/demo/demo-user.py
demo/setup.sh
+7
-6
7 additions, 6 deletions
demo/setup.sh
with
8 additions
and
6 deletions
api/demo/demo-user.py
+
1
−
0
View file @
12638e1d
...
...
@@ -3,4 +3,5 @@ from funkwhale_api.users.models import User
u
=
User
.
objects
.
create
(
email
=
'
demo@demo.com
'
,
username
=
'
demo
'
,
is_staff
=
True
)
u
.
set_password
(
'
demo
'
)
u
.
subsonic_api_token
=
'
demo
'
u
.
save
()
This diff is collapsed.
Click to expand it.
demo/setup.sh
+
7
−
6
View file @
12638e1d
...
...
@@ -5,7 +5,7 @@ demo_path="/srv/funkwhale-demo/demo"
echo
'Cleaning everything...'
cd
$demo_path
docker-compose down
-v
||
echo
'Nothing to stop'
/usr/local/bin/
docker-compose down
-v
||
echo
'Nothing to stop'
rm
-rf
/srv/funkwhale-demo/demo/
*
mkdir
-p
$demo_path
echo
'Downloading demo files...'
...
...
@@ -23,9 +23,10 @@ echo "DJANGO_SECRET_KEY=demo" >> .env
echo
"DJANGO_ALLOWED_HOSTS=demo.funkwhale.audio"
>>
.env
echo
"FUNKWHALE_VERSION=
$version
"
>>
.env
echo
"FUNKWHALE_API_PORT=5001"
>>
.env
docker-compose pull
docker-compose up
-d
postgres redis
echo
"FEDERATION_MUSIC_NEEDS_APPROVAL=False"
>>
.env
echo
"PROTECT_AUDIO_FILES=False"
>>
.env
/usr/local/bin/docker-compose pull
/usr/local/bin/docker-compose up
-d
postgres redis
sleep
5
docker-compose run
--rm
api demo/load-demo-data.sh
docker-compose up
-d
/usr/local/bin/
docker-compose run
--rm
api demo/load-demo-data.sh
/usr/local/bin/
docker-compose up
-d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment