Skip to content

Instantly share code, notes, and snippets.

@eiknarr
Last active January 6, 2019 10:25
Show Gist options
  • Save eiknarr/eb987378dfa9d45e5179165a53c19031 to your computer and use it in GitHub Desktop.
Save eiknarr/eb987378dfa9d45e5179165a53c19031 to your computer and use it in GitHub Desktop.
Deploying Ghost 1.x on Heroku, upgrading to 2.x (Working: Oct. 11, 2018)
  1. Deploy Ghost to Heroku with cobyism one-click install.
  2. git clone https://github.com/cobyism/ghost-on-heroku
  3. cd ghost-on-heroku
  4. heroku git:remote -a MYAPPNAME
  5. git add .
  6. git commit -m "Initial commit"
  7. git push heroku master
  8. ncu -a && yarn add github:tryghost/Casper#2.6.4
  9. git add --all
  10. git commit -m "Ghost 2.2.2, Casper 2.6.4"
  11. git push heroku master
  12. Overwrite dependencies (see below).

N.B. Ensure "ghost" and "casper" versions in dependencies and for lines 8, 10 reflect the latest versions.

Clean Dependencies (as of Oct. 11, 2018)

{ "name": "ghost-on-heroku", "description": "Just a blogging platform on Heroku.", "license": "MIT", "repository": { "type": "git", "url": "git://github.com/cobyism/ghost-on-heroku.git" }, "bugs": "https://github.com/TryGhost/Ghost/issues", "private": true, "version": "1.7.1", "dependencies": { "casper": "github:tryghost/Casper#2.6.4", "ghost": "^2.2.2", "ghost-storage-adapter-s3": "^2.5.2", "mysql": "^2.16.0", "@babel/core": "^7.0.0", "express": "^4.16.3", "path": "^0.12.7", "webpack": "^4.17.1", "webpack-command": "^0.4.1" }, "engines": { "node": "8.9.x" }, "scripts": { "start": "node server.js" } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment