Assuming you followed βInstall from zip (faster and better for bloggers)β from https://github.com/tryghost/Ghost , and you are serving static content from / public / with an http server.
My solution is to use the Ghost Express server to serve your content:
Download Ghost.zip and unzip to [path]/server/
Open the Ghost config.js file and change the URL in development http: // localhost: 2368 to <a2>
Now open the index.js file in the same directory and add the following:
parentApp.use(express.static(__dirname + '/public'));
after: parentApp = express();
where '/ public' is the directory containing your static content.
Now, if you go to http: // localhost: 2368 , you will find your site and your blog will be at http: // localhost: 2368 / blog /
To proceed to production, you need to make the appropriate changes and start with NODE_ENV=production npm start . To go to port 80, you only need to change the port inside config.js, and this will serve both your website and the blog on 80. This will obviously give you an insufficient resolution problem and there are a ton of tutorials that show how configure Node.js on port 80, so follow this.
Rahat mahbub
source share