Giter Site home page Giter Site logo

ghostrunner's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.