This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var awsSesMail = require('aws-ses-mail'); | |
| var SimpleSESAdapter = sesConfig => { | |
| if (!sesConfig || !sesConfig.accessKeyId || !sesConfig.secretAccessKey || !sesConfig.region || !sesConfig.fromAddress) { | |
| throw 'SimpleSESAdapter requires an API Key, Secret Key, region and fromAddress.'; | |
| } | |
| var sesMail = new awsSesMail(); | |
| sesMail.setConfig(sesConfig); | |
| var sendMail = mail => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ##[] install node | |
| curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
| sudo apt-get install -y nodejs | |
| ##[] install forever | |
| sudo npm install npm -g | |
| sudo npm install forever -g | |
| ##[] install nginx |