S
S
Sergey2015-04-22 15:03:50
Windows
Sergey, 2015-04-22 15:03:50

How to run Ghost Blog under Windows Desktop on local domain?

Greetings to all those who are not indifferent to this issue.
I spent a lot of time, but I still can't figure out how to make the Ghost engine open in production mode on the local domain (for example , ghost.loc )? In the config.js file, on line 13 ( url parameter ), I wrote the following:

production: {
        url: 'http://ghost.loc',
        mail: {},
        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'
        }
    },

But when I try to open a blog at ghost.loc, I get an error in the browser. I tried to write the following line in the file "C:\Windows\System32\drivers\etc\hosts": 127.0.0.1 ghost.loc - the same to no avail.
If you specify 127.0.0.1:2368 in the URL parameter in config.js , everything opens without problems, but I saw in the manuals that people run a blog under Windows on any domain. How to achieve this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-12-17
@zapara

Link to solution in this comment .

V
Vitaly Pukhov, 2015-04-23
@Neuroware

It's easier to write the desired name in hosts and it will be exactly what you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question