I just created a script/run in my project in the following way:
#!/usr/bin/env ruby
# set some ENV variables..
`foreman start -f Procfile.dev`
So, I have some questions:
- If I set a
ENV["EMAIL_USERNAME"]
from the ruby script, will rails be able to read it? - Running foreman in that way seems like doens't work. It just stuck. Is there another way?
Yeah, I do know that I cant export a ENV variable to PATH, but I wish I can made the variable be exported to the app only.
PS: It could be in bash too.