Skip to content

Commit

Permalink
modified workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
leoBitto committed Dec 29, 2023
1 parent 67da745 commit 6e5718b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
shell: bash


- name: Update server and create new User
- name: Update server and repo
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DO_SERVER_IP }}
Expand All @@ -42,8 +42,8 @@ jobs:
# Update Repository
cd /home/$USER_NAME/$REPO_NAME
sudo -u www-data git pull
sudo -u www-data git pull --recurse-submodules
# Activate Virtual Environment and install dependencies
sudo -u $USER_NAME virtualenv env_dj
source env_dj/bin/activate
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ jobs:
sudo systemctl status gunicorn
sudo systemctl status nginx
sudo -u ${{ secrets.USER_NAME }} git pull
# change owner to home and everything
sudo chown -R www-data:www-data /home

0 comments on commit 6e5718b

Please sign in to comment.