Migrate prod:prune-backups to standalone script
This commit is contained in:
@@ -28,11 +28,6 @@ run = "gh run watch"
|
|||||||
description = 'Open an ssh console to the production env'
|
description = 'Open an ssh console to the production env'
|
||||||
run = 'ssh music-library-prod'
|
run = 'ssh music-library-prod'
|
||||||
|
|
||||||
[tasks."prod:prune-backups"]
|
|
||||||
confirm = 'Are you sure you want to delete all downloaded database backups?'
|
|
||||||
description = 'Deletes all downloaded database backups'
|
|
||||||
run = 'rm data/music_library_prod*'
|
|
||||||
|
|
||||||
[tasks."prod:test"]
|
[tasks."prod:test"]
|
||||||
description = 'Run HTTP tests against production'
|
description = 'Run HTTP tests against production'
|
||||||
run = 'hurl --test test/prod.hurl'
|
run = 'hurl --test test/prod.hurl'
|
||||||
|
|||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#MISE description="Remove locally downloaded production database backups"
|
||||||
|
#MISE confirm="Are you sure you want to remove all backups?"
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rm data/music_library_prod*
|
||||||
Reference in New Issue
Block a user