1

我现在有一个大问题。我的网站是用 Ruby on Rails 编写的,我正在使用活跃的商家 gem 与 PayPal 交互。该网站托管在 heroku 上。

我在 Heroku 应用程序中将 API 密钥和 API 签名设置为配置变量。但是,我仍然收到错误:

Running: rake assets:precompile
(in /tmp/build_3pvaswdp7wvca1)
rake aborted!
An API Certificate or API Signature is required to make requests to PayPal
(See full trace by running task with --trace)

我可以单独运行 heroku run rake assets:precompile 并且工作得很好。

此外,我的登台站点在我的登台站点上设置了完全相同的配置变量(RACK_ENV 和 RAILS_ENV 在登台站点上设置为生产),并且似乎工作正常。但是,我的生产站点崩溃了。

关于可能发生的事情/如何解决此问题的任何想法?

4

1 回答 1

0

我刚刚发现了这个命令:

heroku labs:enable user-env-compile -a myapp 

但它是实验性的。

于 2012-10-24T21:38:32.567 回答