Skip to content

Instantly share code, notes, and snippets.

@paulcarroty
Last active September 15, 2023 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcarroty/1729846fa107f1005b8453980042f780 to your computer and use it in GitHub Desktop.
Save paulcarroty/1729846fa107f1005b8453980042f780 to your computer and use it in GitHub Desktop.
ghost npm installer
mkdir -p ./content/adapters/storage
cp -r ./node_modules/ghost-storage-adapter-s3 ./content/adapters/storage/s3
====================
themes=(
casper
lyra
headline
edition
alto
ruby
)
for theme in "${themes[@]}"
do
cp -Rf "node_modules/$theme" content/themes
done
mkdir -p ./content/adapters/storage
cp -r ./node_modules/ghost-storage-cloudinary ./content/adapters/storage/cloudinary
var ghost = require("ghost");
{
"name": "ghost-v5-on-heroku",
"version": "5.11.0",
"description": "Deploy latest ghost v5 on Heroku",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/nixsanctuary/heroku-buildpack.git"
},
"keywords": [
"heroku, blog, ghost"
],
"author": "blog",
"license": "MIT",
"bugs": {
"url": "https://github.com/nixsanctuary/heroku-buildpack/issues"
},
"homepage": "https://github.com/nixsanctuary/heroku-buildpack/#readme",
"engines": {
"node": "16.X"
},
"dependencies": {
"ghost-cli": "latest",
"casper": "github:TryGhost/Casper#main",
"headline": "github:TryGhost/Headline#main",
"edition": "github:TryGhost/Edition#main",
"alto" : "github:TryGhost/Alto#main",
"ruby" : "github:TryGhost/Ruby#main",
"ghost-storage-adapter-s3": "^2.8.0",
"ghost-storage-cloudinary": "^2.2.4",
"lyra": "github:TryGhost/lyra#main",
"mysql": "^2.18.1",
"knex-migrator": "^5.0.3"
},
"cacheDirectories": ["node_modules"],
"scripts": {
"postinstall": "ghost install --allow-root --no-check-empty --no-prompt --no-stack --no-setup --no-setup-linux-user --db sqlite3 && rm -rvf content && cp -Rf package.json package-lock.json node_modules versions/*/; rm -rf node_modules ; echo 'INSTALL TO versions/*/ DONE' && cp -Rf versions/*/* .; echo 'INSTALL TO PWD DONE' && rm -rf versions current && bash -x bin/cloudinary.sh && bash -x bin/aws-s3.sh && bash -x bin/themes.sh",
"start": "node index.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment