GithubHelp home page GithubHelp logo

anthrax3 / openshift-ghost-quickstart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mungell/openshift-ghost-quickstart

0.0 1.0 0.0 103.31 MB

Ghost blog QuickStart for the OpenShift platform

License: MIT License

Shell 1.12% Makefile 0.30% JavaScript 19.99% CSS 60.87% HTML 17.72%

openshift-ghost-quickstart's Introduction

Ghost for OpenShift

Ghost is a free, open, simple blogging platform that is available to anyone who wants to use it.

Visit the project's website at http://ghost.org โ€ข docs on http://support.ghost.org.

Running Ghost on OpenShift

The easiest way to deploy Ghost on OpenShift is to use the QuickStart on the OpenShift Hub.

Note these OpenShift specific changes:

  1. The content/data and content/images directories have been removed. They are created on the server and symlinked to your $OPENSHIFT_DATA_DIR so that posts and uploaded images will persist across 'git pushes'

  2. Even though the Node.js cartridge itself is scalable, this application will not play nice with scaling right now because the images are stored on disk, and since OpenShift does not currently support shared physical disk storage across scaled gears, this cartridge will not scale. We are working on a solution for this.

  3. This quickstart is setup to use MySQL (5.1 or 5.5) or PostgreSQL (8.4 or 9.2). Once you click the Deploy link on the OpenShift Hub, you can choose which database you would like to use.

  4. If you use a custom domain, modify the production url field in the config.js file.

Upgrading to The Latest Version

Upgrading from the older version of this repo < 0.5.7 requires extra steps. You'll notice there is no longer ./core, that is because this repo now depends on ghost which lives in ./node_modules/ghost.

  1. Delete ./core
  2. Delete ./package.json & ./index.js
  3. ./Gruntfile.js & ./bower.json are unnecessary because they are handled by the external ghost dependency and can be removed.
  4. Copy the following files to the root: ./Makefile, ./index.js, ./package.json
  5. Make a copy of your ./config.js because you'll need to copy that over but you don't want to overwrite it.
  6. Copy ./config.js to the root.
  7. Modify ./config.js so it uses your configuration variables, I.E. mail {...} and url.
  8. Run npm install --production
  9. push your updates.

If you are upgrading from >= 0.5.7 then in most cases all you need to do is run npm update in root directory. There are 2 things you should be aware of while upgrading your blog:

  1. RedHat OpenShift runs on Linux x64 platform. If you are running npm update on any other plaform (e.g. Linux x32 or Mac) you will need to make sure you have node_modules/ghost/node_modules/sqlite3/lib/binding/node-v11-linux-x64/node_sqlite3.node in place.

  2. If you are using default theme Casper you will need to update its code manually with following command: cp -r node_modules/ghost/content/themes/casper/ content/themes/. Note: this will override all custom modifications that you did in the theme.

More information can be found on the Ghost Support Site

Logging in For The First Time

Once you have the Ghost server up and running, you should be able to navigate to http://<your-website>/ghost/ from a web browser, where you will be prompted to register a new user. Once you have entered your desired credentials you will be automatically logged in to the admin area.

Copyright & License

Copyright (c) 2013-2015 Ghost Foundation - Released under the MIT license.

openshift-ghost-quickstart's People

Contributors

billsimon avatar cleversprocket avatar coreydaley avatar developercorey avatar lingz avatar lmangani avatar mungell avatar soltysh avatar thesteve0 avatar

Watchers

 avatar

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.