This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ear_path=~/projeto/FSJ/ambiente/maven_repo/br/com/fsj/retaguarda/fsj-retaguarda-ear/1.0-SNAPSHOT/fsj-retaguarda-ear-1.0-SNAPSHOT.ear | |
glassfish_path=~/glassfish-3.1.2.2/glassfish | |
domains_list=$(asadmin list-domains) | |
project_path=~/projeto/FSJ/branches/18.03.3.0 | |
memory_usage=$(free -m | awk 'NR==2{ printf " %.2f", $3*100/$2 }') | |
maximum_memory_usage=75.00 | |
function setDatabaseDialect { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: this assumes you are using ZSH shell. | |
## Installation | |
Install [asdf](https://github.com/asdf-vm/asdf): | |
``` | |
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0 | |
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc | |
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc |