summaryrefslogtreecommitdiff
path: root/actions.sh
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-04-25 17:13:23 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-04-25 17:13:23 +0200
commiteae7431ea9ee9d87634b3938b5cf8b64ebdbfb5a (patch)
tree1d323e5106f5b1eb16a045592ab1bd9d22b6b0e3 /actions.sh
parenta97f1a5eb6649e93bfd6584ed590e37c1290755f (diff)
corrections for last commit
- fixed tests - added links to languages in about - raised log level of actions in I18N2 - improved actions script - corrected dependencies in Makefile.PL - updated changes
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"