d2denis / ghost-qiniu-heroku

One-click Heroku deploy for the Ghost blogging platform with QINIU bucket storage support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ghost is a free, open, simple blogging platform. Visit the project's website at http://ghost.org, or read the docs on http://support.ghost.org.

Deploying on Heroku

To get your own Ghost blog running on Heroku, click the button below:

Deploy

Fill out the form, and you should be cooking with gas in a few seconds.

Things you should know

  • After deployment, visit the admin area at YOURAPPNAME.herokuapp.com/ghost to set up your blog.

  • Your blog will be publicly accessible at YOURAPPNAME.herokuapp.com.

  • To make changes to your Ghost blog (like adding a theme to the /content directory, for instance), clone your blog locally using the Heroku Toolbelt:

    heroku git:clone --app YOURAPPNAME

What do I put in the deployment and environment variable fields?

  • App name (required). Pick a name for your application. Heroku says this field is optional, but it’s easier if you choose a name here, because you need to specify the URL of your blog in the first config field anyway. You can add a custom domain later if you want, but this is the name of the application you’ll see in your Heroku dashboard.

  • Heroku URL (required). Take the name of your Heroku application, and put it into URL form. For example, if you choose my-ghost-blog as the app name, the Heroku URL config value needs to be http://my-ghost-blog.herokuapp.com (no trailing slash). If you subsequently set up a custom domain for your blog, you’ll need to update your Ghost blog’s HEROKU_URL environment variable accordingly.

Using with file uploads disabled

Heroku app filesystems aren’t meant for permanent storage, so file uploads are disabled by default when using this repository to deploy a Ghost blog to Heroku. If you’re using Ghost on Heroku with QINIU file uploads disabled, you should leave all environment variables beginning with QINIU_… blank.

Configuring QINIU file uploads

To configure QINIU file storage, create an QINIU bucket on QINIU, and then specify the following details as environment variables on the Heroku deployment page (or add these environment variables to your app after deployment via the Heroku dashboard):

  • QINIU_ACCESS_KEY and QINIU_ACCESS_SECRET: Required if using QINIU uploads. These fields are the QINIU key/secret pair needed to authenticate with QINIU. You must have granted this keypair sufficient permissions on the QINIU bucket in question in order for QINIU uploads to work.

  • QINIU_BUCKET_NAME: Required if using QINIU uploads. This is the name you gave to your QINIU bucket.

  • QINIU_DOMAIN: Required if using QINIU uploads. This is the domain name accessible to your QINIU public bucket.

Once your app is up and running with these variables in place, you should be able to upload images via the Ghost interface and they’ll be stored in QINIU. ✨

How this works

This repository is essentially a minimal web application that specifies Ghost as a dependency, and makes a deploy button available.

Problems?

If you have problems using your instance of Ghost, you should check the official documentation or open an issue on the official issue tracker. If you discover an issue with the deployment process provided by this repository, then open an issue here.

License

Released under the MIT license, just like the Ghost project itself.

About

One-click Heroku deploy for the Ghost blogging platform with QINIU bucket storage support

License:MIT License


Languages

Language:JavaScript 96.6%Language:Shell 3.4%