开发者

Setting Local Environment Variables with POW.cx

开发者 https://www.devze.com 2023-04-01 09:12 出处:网络
I\'ve installed pow.cx so I can setup local environment variables. I\'ve created the symlink to my app which is working fine.

I've installed pow.cx so I can setup local environment variables. I've created the symlink to my app which is working fine.

Here is my environment.rb file

# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
Myapp::Application.initialize!

ENV['RECAPTCHA_PUBLIC_KEY']
ENV['RECAPTCHA_PRIVATE_KEY']

What I'm not sure of is how I should add my environment variables to the .powenv file.

My .powenv file.

RECAPTCHA_PRIVATE_KEY => 1234567890
RECAPTCHA_PUBLIC_KEY  => 0987654321

Can someone tell me if this is ok because it doesn't work.

I've tried adding export to the front of each line but that adds files to my app directory with my key values.

Here is the documentation for setting environment variables with pow.cx

http://pow.cx/m开发者_C百科anual.html#section_2.2


Try

export RECAPTCHA_PRIVATE_KEY="1234567890"

export RECAPTCHA_PUBLIC_KEY ="0987654321"
0

精彩评论

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