I have a node.js application where one of the views is the ghost.js blog, which I integrated following the wiki wiki article Using Ghost as an npm module .
Currently my local version is working fine.
Error:
When I visit the expanded website, everything works fine, except when I get to mysite.heroku.com/blog , after which I get a ghost page that looks like
.
I noticed that the application has two localhost branches that work simultaneously ( localhost:3000 and localhost:2368/ ). I am not sure if this could cause an error. I checked Heroku logs and they do not provide more details than the GET request was sent to /blog , returning a 301 first and then 404 error.
It would also be useful to know that when I click the Go to front page link, it sends me to http://localhost:2368/
My config.js file is as follows:
var path = require('path'), config; config = { // Development **(default)** development: { // The url to use when providing links to the site, Eg in RSS and email. // Change this to your Ghost blogs published URL. url: 'http://localhost:2368/blog', // Example mail config // Visit http://support.ghost.org/mail for instructions // ``` ``` database: { client: 'sqlite3', connection: { filename: path.join(__dirname, '/content/data/ghost-dev.db') }, debug: false }, server: { // Host to be passed to node `net.Server#listen()` host: '127.0.0.1', // Port to be passed to node `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 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 }, //