Skip to content

Commit

Permalink
fix(ansible): update conda env activation
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Apr 13, 2024
1 parent e5f2518 commit 6e64216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion dev/prod.celery.start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6e64216

Please sign in to comment.