Skip to content

Instantly share code, notes, and snippets.

View fschoenfeldt's full-sized avatar
🎀
Classy

Frederik Schönfeldt fschoenfeldt

🎀
Classy
View GitHub Profile
@fschoenfeldt
fschoenfeldt / update_ghost.sh
Last active April 9, 2023 12:31
Update Ghost CMS – script on / for uberspace
#!/bin/bash
#set -v
# created by peleke.de
# modified by @fschoenfeldt - 27.11.2019 & 09.04.2023
GHOSTDIR=~/blog
PACKAGE_VERSION_OLD=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' $GHOSTDIR/current/package.json)
CURRENT_GHOST=$(curl -s https://api.github.com/repos/TryGhost/Ghost/releases | grep tag_name | head -n 1 | cut -d '"' -f 4)
CURRENT_GHOST_DOWNLOAD=$(curl -s https://api.github.com/repos/TryGhost/Ghost/releases/latest | grep zipball_url | cut -d '"' -f 4)
CURRENT_GHOST_FILE=$(echo $CURRENT_GHOST_DOWNLOAD | sed 's:.*/::').zip
echo "installed version: $PACKAGE_VERSION_OLD"
@fschoenfeldt
fschoenfeldt / docker-compose.yml
Created September 5, 2019 07:09
Drupal in Docker - docker-compose.yml
# Drupal with PostgreSQL
#
# Access via "http://localhost:8080"
# (or "http://$(docker-machine ip):8080" if using docker-machine)
#
# During initial Drupal setup,
# Database type: PostgreSQL
# Database name: postgres
# Database username: postgres
# Database password: example
@fschoenfeldt
fschoenfeldt / README.md
Last active August 23, 2019 09:01
Ghost CMS: Docker Quickstart Guide with docker-compose.yml

Ghost CMS with Docker Community image

Requirements: Docker / NodeJS (+npm) - More info at: https://hub.docker.com/_/ghost - Ghost Source: https://github.com/TryGhost/Ghost

Quick start

  1. Download docker-compose.yml and place it in a directory
  2. Go into the directory and run docker-compose up - Docker will download the latest image now
  3. You can now go to localhost:8080 in your browser verify it's running