My account's a mix of PHP and Ruby applications. What do I need to type into my .bash_profile to handle:
I read WF's gem docs and have no idea what to actually type where. How do I pull this off? asked 21 Jan '14, 22:28 jskolnick |
Each application has its own ruby binary and gems path for a reason. It is best practice to keep them separate. When you need to install gems for a given application you would follow steps 1-6 in this documentation. By invoking the export commands in steps 2-5 you are setting the gems and binary path for the rest of that session. answered 21 Jan '14, 23:13 johns I've got seanf's answer in mind: "If you don't want to set them manually each time, then set them in your .bash_profile - but be aware that you'll need to override them if you're working with multiple apps."
(21 Jan '14, 23:40)
jskolnick
What that means that if you have appA and appB, and you put this in your
... then your shell environment will be configured to work with appA, and not appB, and that if you want to work with appB, you'll need to reset those variables accordingly.
(21 Jan '14, 23:45)
seanf
|