-
Notifications
You must be signed in to change notification settings - Fork 9
Configure server
http://gregtrowbridge.com/deploying-a-bower-dependent-node-app-on-windows-azure/
$ azure site deploymentscript --node
- Go to routes/contact.js. Inside this document there is the configuration user and password for gmail.
transporter = nodemailer.createTransport({
service: 'Gmail',
auth: {
user: '<yourGMAILAccount>',
pass: '<yourGMAILPassword>'
}
});
-
There is not a good idea to publish this private data into github publicily. So you have to configure Enviroments variables.
-
Create config.json and set process Enviroments variables into nodeemailr.
- Launch your application and pass your local Enviroments variable
GMAIL_PASSWD=YOURPASSWOED npm start
- Now, we can say azure to work with this Enviroments vairbales.
From: http://tstringer.github.io/nodejs/azure/2015/11/24/get-and-set-node-azure-web-app-env-vars.html
$ npm install --save azure
$ azure login
$ azure site appsetting list your-web-app-name
$ azure site appsetting add NEW_ENVIRONMENT_VAR=yourValue your-web-app-name
$ azure site appsetting delete GMAIL_PASSWD newferreiro
$ azure site appsetting add GMAIL_PASSWD=<GMAILPASSWORD>;
In order to work on your server (in this case Microsoft azure) you have also add those variables into the server Enviroments variables
http://gunnariauvinen.com/how-to-configure-custom-domain-name-from-gandi-on-an-azure-website/
https://wiki.gandi.net/en/dns/zone/a-record
type A (@) points to your sever XXX.XX.XX.XXX type (WWW) points to name.azurewebsites.net
http://searchengineland.com/seo-when-your-domain-homepage-are-not-the-same-131592