Skip to content

jtribe/ghostrunner

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 13 commits ahead, 1 commit behind simonexmachina:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 

Ghostrunner

A CLI for the Ghost blogging platform.

Ghostrunner is a command-line application that can create Ghost blogs and provides OS-specific service wrappers (upstart, launchctl or initctl) so that the server is started on system startup.

See this blog article for detailed setup instructions for AWS.

Usage

npm install -g ghostrunner

Creating a Blog

mkdir somewhere && cd somewhere
ghostrunner init
ghostrunner server

ghostrunner init will not overwrite any files - if you want to overwrite files then remove them first.

Installing the blog as a service

ghostrunner install # uses ndm to install the appropriate service wrapper for your OS
ghostrunner start # to start the service now

Deployment

  1. Install ghostrunner on the server: sudo npm install -g ghostrunner
  2. Deploy the blog to your server and cd into the directory
  3. npm install && sudo ghostrunner install && sudo ghostrunner start
  4. Confirm that it runs on system startup by rebooting

Specifying user and group

If you want to run your blog as a different user you can use the --uid and --gid options. Be aware that running as root is probably a very bad idea.

ghostrunner install --uid myuser --gid myuser

Troubleshooting

  • If you change the package name (in package.json) you will also need to change the ghostrunner-blog key in service.json

About

A CLI for the Ghost blogging platform

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 59.0%
  • JavaScript 24.8%
  • HTML 16.2%