This article will show you how to get node.js
, the web server that Ghost runs on, npm
the package manager for node, and Ghost, the Kickstarter funded blogging platform, running on a pcDuino with the Ubuntu operating system.
Initial Setup
With a clean install of Raspbian run the following commands to download node.js:
wget http://nodejs.org/dist/node-latest.tar.gz tar -xzf node-latest.tar.gz cd [node folder]
Use the following commands to compile and install node.js
./configure make make install
Download and Install Ghost:
wget https://ghost.org/zip/ghost-latest.zip unzip -d ghost [Name-of-Ghost-zip].zip
Execute the following commands:
cd ghost/ sudo npm install cp config.example.js config.js
Now you just need to edit the config.js
file and replace the listening address and port to your Raspberry Pi’s IP address. For example replace host: '127.0.0.1'
with host: 'youripaddress'
and port: '2368'
to port: '80'
.
And finally run npm start
to start Ghost process.
Your new Ghost blog can be accessed at: http://youripaddress/ghost
Leave a Reply
You must be logged in to post a comment.