summaryrefslogtreecommitdiff
path: root/app/build.sh
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-08-12 08:55:22 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-08-12 08:55:22 +0800
commit698ca07d0e404dbd6808ec33494e8d9c9a868749 (patch)
tree989409d61ce040f1a8fd5a0ccf2709d57c9bb879 /app/build.sh
parent3c50edede6aeeacec95afadf9692dfc5e555d1ee (diff)
README.md: update README.md.
Diffstat (limited to 'app/build.sh')
-rwxr-xr-xapp/build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/build.sh b/app/build.sh
new file mode 100755
index 0000000..52cc695
--- /dev/null
+++ b/app/build.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+cd /home/lanhui/englishpal
+
+# Stop service
+sudo service docker restart
+
+# Rebuild container. Run this after modifying the source code.
+sudo docker build -t englishpal .
+
+# Run the application
+sudo docker run -d -p 90:80 -v /home/lanhui/englishpal/app/static/frequency:/app/static/frequency -t englishpal # for permanently saving data
+
+# Save space. Run it after sudo docker run
+sudo docker system prune -a -f
+
+