Good recapitulation about switching to microservices
https://aadrake.com/posts/2017-05-20-enough-with-the-microservices.html
https://aadrake.com/posts/2017-05-20-enough-with-the-microservices.html
tell application "iTerm2"
tell current window
create tab with default profile command "ssh myuser@111.111.111.111 -i my.pem"
select last tab
tell the current session
write text "#web 1;"
end tell
create tab with default profile command "ssh myuser@111.111.111.112 -i my.pem"
select last tab
tell the current session
write text "#web 2;"
end tell
create tab with default profile command "ssh myuser@111.111.111.113 -i my.pem"
select last tab
tell the current session
write text "#worker 1;"
end tell
end tell
end tell
osascript mysqcript.app
alias dbbck='mysqldump -u myusername -pmypassword mydatabase > mijalkodb_$(date +"%Y_%m_%d").sql'
#!/bin/bash source '/home/dev/.bashrc' echo -ne '\033]0;Web server\007' cd '/home/dev/src/proj1' source '/home/dev/src/venv/bin/activate' bash /home/dev/src/proj1/start_web_server.sh
#!/bin/bash gnome-terminal --window-with-profile=dev --working-directory='/home/dev/' -e 'bash --rcfile /home/dev/scripts/terminal1.sh' gnome-terminal --window-with-profile=dev --working-directory='/home/dev/' -e 'bash --rcfile /home/dev/scripts/terminal2.sh' gnome-terminal --window-with-profile=dev --working-directory='/home/dev/' -e 'bash --rcfile /home/dev/scripts/terminal3.sh'
pdb script.py
python -m pdb script.py