Skip to content

Commit

Permalink
BE: skip oh my zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
andreipradan committed Nov 21, 2024
1 parent 90be490 commit 8a0a484
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/.zshrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
alias reload="source ~/.zshrc"
alias showlogs="${HOME}/projects/mainframe/deploy/show-logs.sh"
goto () {cd ~/projects/$1}
cd ${HOME}/projects/mainframe/backend
cd ${HOME}/projects/mainframe
source ${HOME}/projects/.virtualenvs/mainframe/bin/activate
1 change: 1 addition & 0 deletions deploy/initial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ else
echo "[zsh] Installing ohmyzsh" && sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "[zsh] Setting .zshrc aliases" && cat "${PROJECT_DIR}/deploy/.zshrc" >> "${HOME}/.zshrc"
echo "[zsh] Setting theme to af-magic" && sed -i -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="af-magic"/g' "${HOME}/.zshrc"
echo "[zsh] Setting .bashrc - zsh " && cat "zsh" >> "${HOME}/.bashrc"
echo "[zsh] Done."
fi

Expand Down
2 changes: 1 addition & 1 deletion deploy/services/backend.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=django backend server

[Service]
User=rpi
ExecStart=/home/rpi/projects/.virtualenvs/mainframe/bin/gunicorn -b 0:7777 --workers 3 --log-file=/var/log/mainframe/server.log mainframe.core.wsgi
ExecStart=/home/rpi/projects/.virtualenvs/mainframe/bin/gunicorn -b 0:7777 --workers 3 mainframe.core.wsgi
ExecStartPost=/home/rpi/projects/.virtualenvs/mainframe/bin/python mainframe/clients/chat.py [[backend]] up
ExecStopPost=/home/rpi/projects/.virtualenvs/mainframe/bin/python mainframe/clients/chat.py [[backend]] down
Restart=on-success
Expand Down

0 comments on commit 8a0a484

Please sign in to comment.