I want to set MONGOHQ_URL
in my sinatra app in order to be able to do this:
我想在我的sinatra应用中设置MONGOHQ_URL,以便能够做到:
uri = URI.parse(ENV['MONGOHQ_URL'])
How do I setup the MONGOHQ_URL
?
如何设置MONGOHQ_URL?
1 个解决方案
#1
8
- on Windows:
set MONGOHQ_URL=test
- 在Windows:设置MONGOHQ_URL =测试
- on Unix (bash):
export MONGOHQ_URL=test
- 在Unix (bash):导出MONGOHQ_URL=test
- on Unix (csh):
setenv MONGOHQ_URL test
- 关于Unix (csh): setenv MONGOHQ_URL测试
#1
8
- on Windows:
set MONGOHQ_URL=test
- 在Windows:设置MONGOHQ_URL =测试
- on Unix (bash):
export MONGOHQ_URL=test
- 在Unix (bash):导出MONGOHQ_URL=test
- on Unix (csh):
setenv MONGOHQ_URL test
- 关于Unix (csh): setenv MONGOHQ_URL测试