无法在 Ghost 博客上配置电子邮件和重置密码
Can't configure email and reset password on Ghost blog
我有一个 Ghost 博客,但我忘记了密码(是的)。我尝试输入它 5 次,现在我的帐户被阻止了。
我想重设密码,但出于某种我不明白的原因,Ghost(或我的服务器,我不知道)无法向我发送电子邮件。
我按照此处描述的步骤 http://support.ghost.org/mail 从服务器上的 gmail 设置了我的电子邮件帐户。我的 config.js 文件是这样的:
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
url: 'http://gabsferreira.com',
mail: {
transport: 'SMTP',
options: {
service: 'Gmail',
auth: {
user: 'myuser',
pass: 'mypass'
}
}
},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
}
},
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
// Change this to your Ghost blogs published URL.
url: 'http://gabsferreira.com',
// Example mail config
// Visit http://support.ghost.org/mail for instructions
mail: {
transport: 'SMTP',
options: {
service: 'Gmail',
auth: {
user: 'myuser', // mailgun username
pass: 'mypass' // mailgun password
}
}
},
// ```
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
paths: {
contentPath: path.join(__dirname, '/content/')
},
// **Developers only need to edit below here**
// ### Testing
// Used when developing Ghost to run tests and check the health of Ghost
// Uses a different port number
testing: {
url: 'http://127.0.0.1:2369',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-test.db')
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing MySQL
// Used by Travis - Automated testing run through GitHub
'testing-mysql': {
url: 'http://127.0.0.1:2369',
database: {
client: 'mysql',
connection: {
host : '127.0.0.1',
user : 'root',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing pg
// Used by Travis - Automated testing run through GitHub
'testing-pg': {
url: 'http://127.0.0.1:2369',
database: {
client: 'pg',
connection: {
host : '127.0.0.1',
user : 'postgres',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
}
};
// Export config
module.exports = config;
在"myuser"和"mypass"中是我的用户名和密码,输入正确。
当我尝试重设密码时,收到此错误消息:
我不知道该怎么办,因为我不知道哪里出了问题。我需要在 gmail 上启用某些功能吗?是否有 ghost 记录正在发生的错误的地方?
我不是重度 Ubuntu 用户,所以我不确定去哪里看或做什么。
这篇文章对如何从 sqlite 重置它有非常清晰的步骤 http://sharadchhetri.com/2015/06/07/ghost-blog-reset-password-and-activate-user-from-sqlite/
我有一个 Ghost 博客,但我忘记了密码(是的)。我尝试输入它 5 次,现在我的帐户被阻止了。
我想重设密码,但出于某种我不明白的原因,Ghost(或我的服务器,我不知道)无法向我发送电子邮件。
我按照此处描述的步骤 http://support.ghost.org/mail 从服务器上的 gmail 设置了我的电子邮件帐户。我的 config.js 文件是这样的:
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
url: 'http://gabsferreira.com',
mail: {
transport: 'SMTP',
options: {
service: 'Gmail',
auth: {
user: 'myuser',
pass: 'mypass'
}
}
},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
}
},
// ### Development **(default)**
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
// Change this to your Ghost blogs published URL.
url: 'http://gabsferreira.com',
// Example mail config
// Visit http://support.ghost.org/mail for instructions
mail: {
transport: 'SMTP',
options: {
service: 'Gmail',
auth: {
user: 'myuser', // mailgun username
pass: 'mypass' // mailgun password
}
}
},
// ```
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
// Host to be passed to node's `net.Server#listen()`
host: '127.0.0.1',
// Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
port: '2368'
},
paths: {
contentPath: path.join(__dirname, '/content/')
},
// **Developers only need to edit below here**
// ### Testing
// Used when developing Ghost to run tests and check the health of Ghost
// Uses a different port number
testing: {
url: 'http://127.0.0.1:2369',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-test.db')
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing MySQL
// Used by Travis - Automated testing run through GitHub
'testing-mysql': {
url: 'http://127.0.0.1:2369',
database: {
client: 'mysql',
connection: {
host : '127.0.0.1',
user : 'root',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
},
// ### Testing pg
// Used by Travis - Automated testing run through GitHub
'testing-pg': {
url: 'http://127.0.0.1:2369',
database: {
client: 'pg',
connection: {
host : '127.0.0.1',
user : 'postgres',
password : '',
database : 'ghost_testing',
charset : 'utf8'
}
},
server: {
host: '127.0.0.1',
port: '2369'
},
logging: false
}
};
// Export config
module.exports = config;
在"myuser"和"mypass"中是我的用户名和密码,输入正确。
当我尝试重设密码时,收到此错误消息:
我不知道该怎么办,因为我不知道哪里出了问题。我需要在 gmail 上启用某些功能吗?是否有 ghost 记录正在发生的错误的地方?
我不是重度 Ubuntu 用户,所以我不确定去哪里看或做什么。
这篇文章对如何从 sqlite 重置它有非常清晰的步骤 http://sharadchhetri.com/2015/06/07/ghost-blog-reset-password-and-activate-user-from-sqlite/