summaryrefslogtreecommitdiff
path: root/modd.conf
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-02-17 20:28:59 +0100
committerLinnnus <[email protected]>2025-02-17 20:28:59 +0100
commit2b309097ca145651618234476160fb30405eabe7 (patch)
tree20321cf83d18c0c3c3a0a745626565074ea69a41 /modd.conf
Initial commit
Diffstat (limited to 'modd.conf')
-rw-r--r--modd.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/modd.conf b/modd.conf
new file mode 100644
index 0000000..d3bf6b3
--- /dev/null
+++ b/modd.conf
@@ -0,0 +1,26 @@
+app/** !app/.svelte-kit/** !app/node_modules/** {
+ indir: app/
+
+ prep: npm run check
+ prep: npm run format
+}
+
+{
+ # Vite dev server manages reloading itself
+ daemon: cd app/ && npm run dev
+}
+
+# Run various services simulating production environment.
+{
+ prep: mkdir -p ./local/{minio,beanstalkd}
+
+ # Object storage server
+ daemon: minio server ./local/minio
+
+ # Job queue
+ daemon: beanstalkd -b ./local/beanstalkd
+
+ # Database server
+ prep: bash ./db/create_db.sh ./local/postgresql
+ daemon: bash ./db/run_db.sh ./local/postgresql
+}