summaryrefslogtreecommitdiff
path: root/actions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'actions.sh')
-rwxr-xr-xactions.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/actions.sh b/actions.sh
index 49fa4e2..c8636bc 100755
--- a/actions.sh
+++ b/actions.sh
@@ -2,14 +2,22 @@
set -euC
-test () {
+run_tests () {
eval "prove -l ${1-} t/"
}
-start () {
+foreground () {
script/jwebmail daemon
}
+start_dev () {
+ MOJO_MODE=development hypnotoad script/jwebmail
+}
+
+stop_dev () {
+ MOJO_MODE=development hypnotoad -s script/jwebmail
+}
+
logrotate () {
mode=${1:-development}
mv -i "log/$mode.log" "log/${mode}_$(date --iso-8601=minutes).log"