0

Ghost is a cross platform professional blogging application. It is powered by a Node.js and modern stacks. It is written in java-script and managed by the Ghost foundation. It has clean design that is focus only for bloggers with clean Interface makes it popular in blogging platform. It is a lightweight application and most important thing it is powerful blogging platform. It is a content management system that uses markdown like Github that makes it ideal for blogging.

Step-1 (Install the NodeSource Node.js)
# wget -qO- https://deb.nodesource.com/setup | bash -
Step-2 (Install Required Packages)
# apt-get install -y build-essential nginx nodejs
Step-3 (Configure Nginx Virtualhost)
# vi /etc/nginx/sites-enabled/default

Add the given lines

server {
listen 80;
server_name techbrown.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
}
}

Create Symbolic link

# ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
Step-4 (Download the Ghost Packages)
# wget https://ghost.org/zip/ghost-latest.zip
Step-5 (Install the Ghost Blogging platform)

Unzip the Downloaded ghost packages to /usr/share/nginx/html/

# unzip -uo ghost-latest.zip -d /usr/share/nginx/html/

Now change the directory to installation location

# cd /usr/share/nginx/html/

Now install the Ghost packages in production environment

# npm install --production
Step-6 (Configure the Ghost blogging platform)

Copy the example configuration file

# cp -rv config.example.js config.js

Edit the configuration file

# vi config.js

Edit the given lines

production: {
url: 'http://www.techbrown.com',
mail: {
// Your mail settings
},
Step-7 (Run the Ghost blogging platform on Production Environment)

We need to run the server in production environment using NPM package Forever

# npm install forever -g

Start ghost using forever

# forever start index.js

Start Ghost blogging Platform on production environment

# NODE_ENV=production forever start index.js

That’s all for now.

How to Install Apache Spark on Ubuntu / Debian

Previous article

How to Extract tar.gz / tar.bz2 / tar.xz Files on Linux

Next article

You may also like

Comments

Leave a reply

Your email address will not be published. Required fields are marked *

More in Linux