diff options
| author | Derrick <[email protected]> | 2021-07-24 15:45:00 -0600 |
|---|---|---|
| committer | Derrick <[email protected]> | 2021-07-24 15:46:53 -0600 |
| commit | 4178972e58375fe4bae447f27d5e320946f147f6 (patch) | |
| tree | d56c59ba35658b982472aa57e9e1963845ea1ee4 /scripts/purge-except-git.sh | |
| parent | b39971fbf6b3e141ff0a4bf1e2e7c1e379451753 (diff) | |
| download | coinos-server-4178972e58375fe4bae447f27d5e320946f147f6.tar.gz coinos-server-4178972e58375fe4bae447f27d5e320946f147f6.zip | |
Purge script to wipe coinos-server and coinos-ui clean but without destroying local git changes.
It is alternative to removing the directories and cloning them again; using this script will accomplish the *same thing but without destroying your local stashes or branches
*it will not stash or reset any modified files already tracked in git so those should be stashed separately if any exist for a true clean reset
Diffstat (limited to 'scripts/purge-except-git.sh')
| -rwxr-xr-x | scripts/purge-except-git.sh | 31 |
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) |
