irongit
rango/dev
17 lines322 B
1#!/bin/bash
2# For development only
3
4# if venv doesn't exist initialize it
5if [ ! -d "venv" ]; then
6 bash init
7else
8 source venv/**/activate
9fi
10
11# run devscript for args 1+ if they exist
12if [ -n "$1" ]; then
13 bash devscripts/$1 ${@:2}
14else
15 docker compose down
16 docker compose up --build --remove-orphans
17fi