TUG makes common server operations more easy
each TUG server cmd (docker, swarm, pm2, pystrano) consists of 2 steps:
- loading server connection config
- making actions on server you selected
tug docker- select environment (example: stg)
- select host
- select select action
- if action requires resource, select resource
- step back using
ctrl + c - step back using
ctrl + c
tug-docker.3.mp4
- chose option: arrow keys + Enter
- search: "/" + type phrase
- go back:
ctrl + c
brew install jq # macOS
sudo apt install jq # Ubuntu
sudo pacman -S jq # Arch Linux
sudo dnf install jq # Red Hat/CentOSbash/zsh
rc_file=${HOME}/.$(basename "$SHELL")rc
echo 'export PATH="$HOME/.tug/bin:$PATH"' >> $rc_file
source $rc_filefish
set rc_file $HOME/.(basename $SHELL)rc
echo 'set -gx PATH $HOME/.tug/bin $PATH' >> $rc_file
source $rc_filecurl -s https://raw.githubusercontent.com/goodylabs/tug/refs/heads/main/scripts/download.sh | bash -stug --versiontug configuretug dockerConfig source: variable in script ./devops/*/deploy.sh
TARGET_IP (string)
IP_ADDRESS (string)
IP_ADDRESSES ([]string)
# Examples
TARGET_IP=192.168.1.100
IP_ADDRESS=192.168.1.100
IP_ADDRESSES=(192.168.1.100 192.168.1.101)Available actions
Config source: same as Docker
Available actions
Config source: ./ecosystem.config.js or ./ecosystem.config.cjs
Available actions
Instead of reading config directly from pm2 / docker project you can manually specify host using --host flag and then optionally --user flag.
tug docker --host 123.23.7.254 # (default user: root)
tug docker --host 123.23.7.254 --user ubuntu


