dotfiles

My personal dotfiles
git clone git://pcardensab.com/dotfiles
Log | Files | Refs | Submodules | README

ausenco (594B)


      1 cd ~
      2 if ! tmux has-session -t ausenco 2>/dev/null; then
      3 	tmux new-session -s ausenco -n uvicorn -d
      4 	tmux send-keys -t ausenco:0.0 'cd /srv/http/ausenco/asgi' C-m
      5 	tmux send-keys -t ausenco:0.0 '. venv/bin/activate' C-m
      6 	tmux send-keys -t ausenco:0.0 'uvicorn app:app --uds ../uvicorn.sock' C-m
      7 
      8 	tmux new-window -t ausenco:1 -n asgi -d
      9 	tmux send-keys -t ausenco:1.0 'cd /srv/http/ausenco/asgi' C-m
     10 	tmux send-keys -t ausenco:1.0 '. venv/bin/activate' C-m
     11 
     12 	tmux new-window -t ausenco:2 -n bin/ausenco -d
     13 	tmux send-keys -t ausenco:2.0 'vim ~/.local/bin/ausenco' C-m
     14 fi
     15 
     16 tmux attach -t ausenco