Skip to content

Commit

Permalink
chore(dev): map folder to speed up development
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Feb 7, 2025
1 parent caddb98 commit 360537f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
How to develop using Docker

1. `docker compose up -d`
2. `docker compose cp . moodle:/bitnami/moodle/theme/serlo`
2. `docker compose exec moodle ln -s /serlotheme /bitnami/moodle/theme/serlo`
(you may need to wait about a minute until the folder `/bitnami/moodle` is populated)
3. Go to Browser `http://localhost`, login with

```
Expand All @@ -12,3 +13,4 @@ password: bitnami
4. If it's your first login, install the theme.
Otherwise, go to "Site Administration > Local plugins > Manage local plugins"
5. Select the new theme at 'Site Administration > Appearence > Theme'
6. When you're done developing -> `docker compose down -v`
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
volumes:
- "moodle_data:/bitnami/moodle"
- "moodledata_data:/bitnami/moodledata"
- ".:/serlotheme"
depends_on:
- mariadb
volumes:
Expand Down

0 comments on commit 360537f

Please sign in to comment.