Skip to content

Commit

Permalink
Use patch for Sandstorm application modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Feb 8, 2020
1 parent 4179510 commit afe0ee8
Show file tree
Hide file tree
Showing 6 changed files with 318 additions and 131 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Application files.
/babybuddy
/.env

# IDE files.
/.idea
10 changes: 5 additions & 5 deletions .sandstorm/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
set -euo pipefail

# Checkout desired version.
# Checkout desired version and apply Sandstorm patch.
VERSION=$(grep -oE 'appMarketingVersion = \(defaultText = "(.+)"' /opt/app/.sandstorm/sandstorm-pkgdef.capnp | cut -d '"' -f2)
cd /opt/app/babybuddy
git checkout v"${VERSION}"

# Copy in Sandstorm specific application overrides.
cp -rf /opt/app/overrides/* /opt/app/babybuddy
git add --all
git rm -rq --cached .venv # TODO: Remove after base .gitignore update.
git checkout -f v"${VERSION}"
git apply /opt/app/sandstorm.patch

# Set up virtual environment.
VENV=/opt/app/babybuddy/.venv
Expand Down
10 changes: 0 additions & 10 deletions overrides/babybuddy/management/commands/migrate.py

This file was deleted.

88 changes: 0 additions & 88 deletions overrides/babybuddy/middleware.py

This file was deleted.

27 changes: 0 additions & 27 deletions overrides/babybuddy/settings/sandstorm.py

This file was deleted.

Loading

0 comments on commit afe0ee8

Please sign in to comment.