This repository was archived by the owner on Jul 8, 2024. It is now read-only.
File tree 3 files changed +5
-2
lines changed 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ def chang_error(message):
44
44
chang_compose_file = sys .argv [1 ]
45
45
chang_compose = yaml .load (file (chang_compose_file , 'r' ))
46
46
47
+ os .system ("mkdir -p {0}" .format (CHANG_TMP_PATH ))
48
+
47
49
env_file = open ("{0}/environment" .format (CHANG_TMP_PATH ), "w" )
48
50
for line in chang_compose ["environment" ]:
49
51
env_file .write ("export {0}\n " .format (line ))
Original file line number Diff line number Diff line change @@ -43,4 +43,3 @@ export CHANG_REV_PROXY_IMAGE=${CHANG_REV_PROXY_IMAGE:-majkel/chang-rev-proxy:ssl
43
43
export CHANG_REV_PROXY_EXTRA_PORTS_PREFIX=${CHANG_REV_PROXY_EXTRA_PORTS_PREFIX:-808}
44
44
45
45
source .chang/environment
46
- mkdir -p $CHANG_TMP_PATH
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ chang_reset() {
7
7
chang_notice " Resetting chang"
8
8
chang_notice " Current chang revision: $( chang_revision) "
9
9
chang_notice " Clearing current project's state"
10
- rm -rf $CHANG_STATE_PATH
11
10
chang_notice " Removing all containers"
12
11
chang_compose down --volumes --remove-orphans --timeout 3
13
12
chang_notice " Removing all volumes"
@@ -19,6 +18,9 @@ chang_reset() {
19
18
done < $CHANG_TMP_PATH /volumes | while read volume; do docker volume rm -f $volume ; done
20
19
)
21
20
21
+ rm -rf $CHANG_STATE_PATH
22
+ rm -rf $CHANG_TMP_PATH
23
+
22
24
chang_notice " Reset complete"
23
25
chang_notice " Run \` chang start\` to start the app"
24
26
}
You can’t perform that action at this time.
0 commit comments