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

pull/10/head
joates 10 years ago
parent b3e692b68c
commit eed1027bb6

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

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

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

Loading…
Cancel
Save