android - 解析开源服务器云代码的工作方式与旧的不同
<p><p>我从使用旧的解析云代码转到 AWS 上的开源解析服务器,而 <code>main.js</code> 的这一部分不起作用。 </p>
<pre><code> var Stripe = require('stripe');
Stripe.initialize('sk_live_mylivekey');
var Mailgun = require('mailgun');
Mailgun.initialize("mydomain.mailgun.org");
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>开源 Parse 服务器中不提供 Stripe、Mailgun、Sendgrid、Twilio 等原生云代码模块。</p>
<p>同样使用官方的 npm 模块:</p>
<ol>
<li> <a href="https://www.npmjs.com/package/stripe" rel="noreferrer noopener nofollow">Stripe npm module</a> </li>
<li> <a href="https://www.npmjs.com/package/mailgun-js" rel="noreferrer noopener nofollow">Mailgun npm module</a> </li>
</ol>
<p>引用:<a href="https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App#3-cloud-code" rel="noreferrer noopener nofollow">Migrate an existing Parse app - Github</a> </p>
<p>注意:</p>
<blockquote>
<p>Because the Parse hosted Cloud Code isn’t running a full node environment, there may be subtle differences in how your Cloud Code runs in Parse Server. We recommend exercising all your critical code paths to ensure full functionality.</p>
</blockquote></p>
<p style="font-size: 20px;">关于android - 解析开源服务器云代码的工作方式与旧的不同,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/36299064/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/36299064/
</a>
</p>
页:
[1]