私はgit-tracked repoを持っていて、IOSプッシュ通知のためにAPNと連携するよう設定しています。私はのように、ここで同様の方法でNPMモジュールhttps://github.com/argon/node-apnの実装で探しています:このコードでhttps://github.com/hollyschinsky/PushNotificationSamplegit-tracked herokuプロジェクトで作業するときに.pemファイルを安全に保存するにはどうすればよいですか?
、しかし
var options = {
gateway: 'gateway.sandbox.push.apple.com', // this URL is different for Apple's Production Servers and changes when you go to production
errorCallback: callback,
cert: 'your-cert.pem', // ** NEED TO SET TO YOURS - see this tutorial - http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
key: 'your-key.pem', // ** NEED TO SET TO YOURS
passphrase: 'your-pw', // ** NEED TO SET TO YOURS
port: 2195,
enhanced: true,
cacheLength: 100
}
があり、どのように私はそれらをコミットせずに私の.pemファイルを参照することを意図していますGithubに?
現在、私はHerokuに展開しています。
私がここにいます同じ質問のために、それを行う最善の方法、最後に、あなたは何をしましたか? – Polak