Browse Source

v0.4.4-rc2: changed config.host (for deploying to test.squatconf.eu)

2015
joates 7 years ago
parent
commit
eed1027bb6
  1. 2
      config.js
  2. 2
      package.json
  3. 5
      src/email-submit.js

2
config.js

@ -6,7 +6,7 @@ module.exports = require('rc')(name, {
db_opts: { valueEncoding: 'json' }
, db_path: join(cwd, 'db', name)
, port: 8000
, host: "squatconf.eu"
, host: "http://test.squatconf.eu"
, email: {
from : "no-reply@squatconf.eu"
, subject : "Hello, everyone is welcome at SquatConf.."

2
package.json

@ -1,6 +1,6 @@
{
"name": "squatconf-web",
"version": "0.4.3",
"version": "0.4.4",
"description": "website for the squatConf conference",
"main": "server.js",
"scripts": {

5
src/email-submit.js

@ -32,8 +32,9 @@ module.exports = function(db) {
// db write OK..
var nodemailer = require('nodemailer')
, transporter = nodemailer.createTransport()
, url = 'http://squatconf.eu/confirm'
, link = url +'?email='+ email +'&token='+ obj.token +'\n\n'
, url = config.host +'/confirm'
, qstr = '?email='+ email +'&token='+ obj.token
, link = url + qstr +'\n\n'
var opts = {
from : config.email.from

Loading…
Cancel
Save