diff options
author | crupest <crupest@outlook.com> | 2020-11-05 17:30:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-05 17:30:58 +0800 |
commit | 8658079e46b6b049008e696e8577350518af274e (patch) | |
tree | 4d066d9b150db1050f1d8c476edd0dcaa6345012 /deploy/upgrade.bash | |
parent | 453effd91e47ad4e6ac90d939dec9209e671d967 (diff) | |
download | timeline-8658079e46b6b049008e696e8577350518af274e.tar.gz timeline-8658079e46b6b049008e696e8577350518af274e.tar.bz2 timeline-8658079e46b6b049008e696e8577350518af274e.zip |
deploy: Add some deploy script.
Diffstat (limited to 'deploy/upgrade.bash')
-rw-r--r-- | deploy/upgrade.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/upgrade.bash b/deploy/upgrade.bash new file mode 100644 index 00000000..156bb1ca --- /dev/null +++ b/deploy/upgrade.bash @@ -0,0 +1,6 @@ +docker pull crupest/timeline:latest +sudo systemctl stop timeline.service +docker rm timeline +docker create -v $HOME/timeline:/timeline -p 5000:80 --name timeline crupest/timeline:latest +sudo systemctl restart timeline.service +docker system prune |