Skip to content

Commit

Permalink
Remove venv legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
injoonH committed Jul 4, 2023
1 parent 549790e commit 3f5c3e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ done


if [ "$1" = "test" ]; then
venv/bin/python manage.py compilemessages -l en -l ko
venv/bin/pytest tests --verbose
python3 manage.py compilemessages -l en -l ko
pytest tests --verbose
else
venv/bin/python manage.py collectstatic --noinput
venv/bin/python manage.py migrate --no-input
venv/bin/python manage.py compilemessages -l en -l ko
python3 manage.py collectstatic --noinput
python3 manage.py migrate --no-input
python3 manage.py compilemessages -l en -l ko
ln -s /newara/www/.docker/supervisor-app.conf /etc/supervisor/conf.d/ || true
exec supervisord -n
fi
4 changes: 2 additions & 2 deletions .docker/supervisor-app.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[program:gunicorn]
command=/newara/www/venv/bin/gunicorn -b 0.0.0.0:9000 -w 3 --timeout 120 ara.wsgi:application
command=gunicorn -b 0.0.0.0:9000 -w 3 --timeout 120 ara.wsgi:application
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:celery-beat]
command=/newara/www/venv/bin/celery -A ara beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
command=celery -A ara beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
directory=/newara/www
stdout_logfile=/var/log/newara/celery-beat.log
stderr_logfile=/var/log/newara/celery-beat.log
2 changes: 1 addition & 1 deletion .docker/supervisor-celery-worker.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:celery-worker]
command = /newara/www/venv/bin/celery -A ara worker -l info
command=celery -A ara worker -l info
directory=/newara/www
stdout_logfile=/var/log/newara/celery-worker.log
stderr_logfile=/var/log/newara/celery-worker.log

0 comments on commit 3f5c3e5

Please sign in to comment.