I finally got tired of typing in:
gradle cleanDb load
and
java -jar moqui.war
So I made these aliases in case anyone else wants to use them.
# moqui aliases
alias build="gradle build"
alias cl="gradle cleanDb load"
alias run="java -jar moqui.war"
alias brun="build && run"
alias clr="cl && run"
Here’s a quick refresher on bash aliases: https://linuxize.com/post/how-to-create-bash-aliases/
Note: After updating your ~/.bashrc
file, run source ~/.bashrc
on a terminal if the command doesn’t work (this run the ~/.bashrc
file and add the aliases to the terminal’s context)