diff --git a/ansible/playbook.yml b/ansible/playbook.yml index bfb60343..e26ce540 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -71,8 +71,8 @@ become_user: root - name: Create ShapeWorks Conda Env ansible.builtin.shell: | - export PATH=/opt/conda/bin:$PATH - cd /opt/shapeworks && conda run /bin/bash -c "source install_shapeworks.sh" + cd /opt/shapeworks && /opt/conda/bin/conda run /bin/bash -c "source install_shapeworks.sh" + echo "/opt/conda/bin/conda activate shapeworks" >> ~/.bashrc args: executable: /bin/bash become: true diff --git a/dev/prod.celery.start.sh b/dev/prod.celery.start.sh index 61382db7..3fac37f2 100644 --- a/dev/prod.celery.start.sh +++ b/dev/prod.celery.start.sh @@ -4,5 +4,4 @@ cd ~/celery_project for keyval in $(cat .env | sed -e 's/: /=/g' -e "s/'\|,\|{\|}//g" -e 's/", "/ /g' -e 's/"}//g' ); do export $keyval; done -conda activate shapeworks celery -A shapeworks_cloud.celery worker -n "w1@${HOSTNAME}" -Q gpu --logfile=celery-logs