开发者

Accessing environment variable through webistrano

开发者 https://www.devze.com 2023-03-01 12:08 出处:网络
As part of my Webistrano deployment, I need to check if Glassfish home is set on the targetmachine. I\'ve tried the following in jrails.rb, none of which outputs the value of Glassfish home:

As part of my Webistrano deployment, I need to check if Glassfish home is set on the target machine.

I've tried the following in jrails.rb, none of which outputs the value of Glassfish home: echo $GLASSFISH_HOME echo ['GLASSFISH_HOME']

Of course, glassfish home is set on the target machine (in .bashrc and /etc/profile). I even tried invoking a script through Web开发者_JAVA百科istrano to echo $GLASSFISH_HOME into a file (on target machine). The file does not have the value!

Looks like through Webistrano, I cannot access the local environment of the target machine.

Please help!

Cheers, Savinder


echo $GLASSFISH_HOME As simple as that!!!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号