aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/purge-except-git.sh
blob: 066b082f9a03427b19b9241845778b4221ed4db1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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)