Posted By

nerdfiles on 11/19/12


Tagged

Bash python workon virtualenv


Versions (?)

A project environment .work file example


 / Published in: Bash
 

URL: http://webjournal.nerdfiles.net/2012/11/14/work-that-is-workon-in-python/

To be used with FUNC_WORK.

  1. #!/bin/bash
  2.  
  3. alias project_root="cd $PWD"
  4.  
  5. if [ "$workon_scss" == "scss" ]; then
  6.  
  7. rvm use 1.9.3-p125
  8.  
  9. # mmt
  10. echo "MMT processing"
  11. cd ./website/static/assets/vendor/
  12. compass watch mmt &
  13.  
  14. # reset
  15. project_root
  16.  
  17. # base style
  18. echo "Base style processing"
  19. cd ./website/static/assets/style/
  20. compass watch compass &
  21.  
  22. # reset
  23. project_root
  24.  
  25. fi

Report this snippet  

You need to login to post a comment.