Robert
Robert

Reputation: 1589

Install Twilio on Heroku Parse Server

I've got a working Parse Server running on Heroku, and I'm trying to get my Twilio cloud code working. As soon as I add var twilio = require('twilio')(twilioAccountSid, twilioAuthToken); to my main.js, the app breaks. The migration guide from Parse.com (https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App#3-cloud-code) shows that Twilio should be installed from the "official npm module". How does one do that? Thanks for any help!

Upvotes: 0

Views: 221

Answers (1)

Robert
Robert

Reputation: 1589

I had to modify package.json, adding "twilio": "~2.9.0" as a dependency. I was also able to troubleshoot this better by installing the Heroku toolbelt, and running heroku logs --tail --app your_app_name from the terminal. I originally installed twilio via the Heroku toolbelt, by running heroku run npm install twilio --app your_app_name, but I'm not sure if that was required or not.

Upvotes: 0

Related Questions