简体   繁体   English

集成Twilio和Parse时遇到IBM BlueMix问题

[英]Having trouble with IBM BlueMix when integrating Twilio and Parse

I am having difficulties finding the correct module for Parse when deploying onto IBM BlueMix. 部署到IBM BlueMix时,我很难找到正确的Parse模块。 I have tried the following: 我尝试了以下方法:

 var Parse = require('node-parse-api').Parse;

This works locally because I used npm-install for parse but I am unsure of how to include this module on IBM BlueMix. 这在本地有效,因为我使用npm-install进行解析,但是我不确定如何在IBM BlueMix上包含此模块。

Using cf push <appname> will deploy node-parse-api into Bluemix. 使用cf push <appname>会将node-parse-api部署到Bluemix中。

Add the node-parse-api in the package.json file for your node.js application 在您的node.js应用程序的package.json文件中添加node-parse-api

Example: 例:

{
        "name": "NodejsStarterApp",
        "version": "0.0.1",
        "description": "A sample nodejs app for Bluemix",
        "scripts": {
                "start": "node app.js"
        },
        "dependencies": {
                "express": "4.12.x",
                "cfenv": "1.0.x",
                "node-parse-api": "0.3.8"
        },
        "repository": {},
        "engines": {
                "node": "0.12.x"
        }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM