aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/purge-except-git.sh
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-07-26 19:21:24 -0700
committerRan Guin <[email protected]>2021-07-26 19:21:24 -0700
commit755e932fb6e249e6a0418e242f2d4c7bce33f0fa (patch)
treee3d20a9db4659f09176264da3d666443ca059fbf /scripts/purge-except-git.sh
parent71e8209a83c139c7dd2096a287774436daa3d76d (diff)
parentb758837e6543acc8b2069402bb0d003feb3d8906 (diff)
downloadcoinos-server-755e932fb6e249e6a0418e242f2d4c7bce33f0fa.tar.gz
coinos-server-755e932fb6e249e6a0418e242f2d4c7bce33f0fa.zip
Merge branch 'master' of https://github.com/asoltys/coinos-server
Diffstat (limited to 'scripts/purge-except-git.sh')
-rwxr-xr-xscripts/purge-except-git.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/purge-except-git.sh b/scripts/purge-except-git.sh
new file mode 100755
index 00000000..066b082f
--- /dev/null
+++ b/scripts/purge-except-git.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+# purge coinos-ui and coinos-server
+# ie- fresh install/clean working dirs but without the clone -
+# useful for local dev when you have stashed changes or branches
+# you don't want to destroy
+
+# start script from coinos-server/scripts ie:
+# $ cd /var/node/coinos-server/scripts
+# $ ./purge-except-git.sh
+
+# you may have to run it with sudo to remove the directories created by docker
+
+# and now the script will move up a dir and do its thing:
+cd ../
+
+# if you have docker-compose process running
+docker-compose down
+
+#purge:
+rm -rf config
+rm -rf mysql
+rm -rf node_modules
+rm .env
+rm fx
+rm docker-compose.override.yml
+
+#also on ui:
+cd ../coinos-ui
+rm -rf node_modules
+
+# (and then follow instructions in root README to rebuild/install)