Skip to content

Commit da8072b

Browse files
authored
make root_dir, env_dir configurable
1 parent 26f4401 commit da8072b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/django.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
- name: Deploy to Server
3232
run: |
3333
ssh server '
34-
cd /home/django/bakeup/ &&
34+
cd ${{ ROOT_DIR }} &&
3535
git pull origin main &&
36-
source /home/django/djangoenv/bin/activate &&
36+
source ${{ ENV_DIR }}bin/activate &&
3737
pip install -r requirements/production.txt &&
3838
python manage.py migrate --settings=config.settings.production &&
3939
python manage.py collectstatic --noinput --settings=config.settings.production &&

0 commit comments

Comments
 (0)