Skip to content

Commit

Permalink
Add makefile for simplified update
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiimilian committed Jan 21, 2021
1 parent 6fdae0c commit af6970c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,7 @@ dmypy.json
# Don't add userdata
data/splitwise.ini
data/users.ini
data/coffee/*.ini
data_bak*
!src/test/data/*
!src/test/data/*/*
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: initial update

DATE := $(shell date +%Y-%m-%d_%H-%M-%S)

update:
# Make backup of data
cp -n -r ./data ./data_bak_$(DATE)
# Pull newest code
git pull
# Update docker container and restart it
docker-compose build
docker-compose up -d

initial:
echo "Not yet implemented!"

0 comments on commit af6970c

Please sign in to comment.