@@ -3,12 +3,20 @@ silent: true
3
3
4
4
tasks :
5
5
default :
6
- desc : The default task that shows help
6
+ desc : List available tasks
7
7
cmds :
8
- - task --list
8
+ - echo "Available tasks:"
9
+ - echo "task install - Install OS2BorgerPC Adminsite"
10
+ - echo "task upgrade - Upgrade OS2BorgerPC Adminsite to a newer version"
11
+ - echo "task start - Start the application by bringing all containers up"
12
+ - echo "task stop - Stop the application by stopping all containers"
13
+ - echo "task reinstall - Reinstall the application. WARNING Deletes volumes and containers"
14
+ - echo "task down - Remove the application. Deletes all volumes and containers"
15
+ - echo "task cron - Run cron jobs manually"
16
+ - echo "task backup_db - Perform a database dump"
9
17
10
18
install :
11
- desc : Install the project
19
+ desc : Install OS2BorgerPC Adminsite
12
20
cmds :
13
21
- task _show_preinstall_notes
14
22
- task _version_file
19
27
- task _show_notes
20
28
21
29
upgrade :
22
- desc : Upgrades the admin site to a newer version
30
+ desc : Upgrade OS2BorgerPC Adminsite to a newer version
23
31
cmds :
24
32
- task _show_upgrade_notes
25
33
- task _version_file
@@ -30,14 +38,14 @@ tasks:
30
38
- task _show_notes
31
39
32
40
reinstall :
33
- desc : Reinstall from scratch. Removes the database, all containers, and volumes.
41
+ desc : Reinstall the application. WARNING Deletes volumes and containers
34
42
deps :
35
43
- down
36
44
cmds :
37
45
- task install
38
46
39
47
down :
40
- desc : Remove all containers and volumes
48
+ desc : Remove the application. Deletes all volumes and containers
41
49
deps :
42
50
- stop
43
51
cmds :
@@ -48,18 +56,18 @@ tasks:
48
56
echo "VERSION file deleted."
49
57
fi
50
58
51
- up :
52
- desc : Take the environment up without altering the existing state of the containers
59
+ start :
60
+ desc : Start the application by bringing all containers up
53
61
cmds :
54
62
- docker compose --env-file .env -f compose.yml up -d
55
63
56
64
stop :
57
- desc : Stop all containers without altering anything else
65
+ desc : Stop the application by stopping all containers
58
66
cmds :
59
67
- docker compose --env-file .env -f compose.yml stop
60
68
61
69
cron :
62
- desc : Manually run all necessary cron jobs, and get automation suggestions
70
+ desc : Run cron jobs manually
63
71
cmds :
64
72
- |
65
73
DOMAIN=$(grep ^DOMAIN= .env | cut -d '=' -f 2)
82
90
echo "===================================================="
83
91
84
92
backup_db :
85
- desc : Perform a database dump and save it to the host filesystem
93
+ desc : Perform a database dump
86
94
cmds :
87
95
- |
88
96
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
0 commit comments