Giter VIP home page Giter VIP logo

ghost's Introduction

Ghost on Azure App Service

This is my fork of Ghost 2.0 with changes to run on Azure App Service. Read here for a full introduction.

Branches

This repo is setup with a few branches for easier maintenance. The ghost branch is where I commit the Ghost releases as they come out unchanged. The azure branch (the default branch) is where I make only the changes necessary to get it running on Azure App Service. I merge the ghost branch into this branch as new releases come out. I then create a separate branch for each site I deploy. This way I can make theme customizations and tweaks to individual sites and rebase those changes off of the azure branch.

Changes on the Azure Branch

  • Add a db.js file in the root to make it easy to initialize/migrate a SQLite database (since I can't run the CLI tool on Azure).
  • Force config.js to get the port it should run on from PORT env variable instead of SERVER_PORT. This is to make iisnode happy.
  • Add web.config & iisnode.yml - standard stuff to host node on IIS.
  • Add support for HSTS headers. Technically, this isn't required to get Ghost running on Azure, but you should probably do it anyway.

To see these changes in detail, see the branch comparison.

How to Run Locally

Make sure you have the latest Node LTS release installed. Install the latest version of Yarn. Clone this repo and run the following in terminal:

yarn
yarn start

This will install dependencies and then start the Ghost development server. If you haven't already, Ghost will automatically setup your sqlite database in /content/data/ghost.db (or migrate it to the latest version if it already exists). You should see something like this in your terminal:

INFO Ghost is running in development...
INFO Listening on: 127.0.0.1:2368
INFO Url configured as: http://localhost:2368/
INFO Ctrl+C to shut down
INFO Ghost boot 3.455s

Open the configured URL in your web browser and you should see the default Ghost installation. Navigate to /ghost to setup the site.

Head on over to the Ghost Development Documentation for more information on how to setup and develop with Ghost.

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.