Skip to content

Commit 8d5ea36

Browse files
committed
added script to setup socketcluster test-server, added cloned repo to ignore
1 parent 8a9c1a7 commit 8d5ea36

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ fastlane/test_output
8787
# After new code Injection tools there's a generated folder /iOSInjectionProject
8888
# https://github.com/johnno1962/injectionforxcode
8989

90-
iOSInjectionProject/
90+
iOSInjectionProject/
91+
92+
SCTestSever/sc-testserver

SCTestSever/scserver

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
if test "$#" -ne 1; then
4+
echo "Please provide start or stop as argument"
5+
exit 1
6+
fi
7+
8+
FOLDER="sc-testserver"
9+
URL="https://github.com/sacOO7/sc-testserver"
10+
11+
if [ ! -d "$FOLDER" ] ; then
12+
git clone $URL $FOLDER
13+
cd "$FOLDER"
14+
else
15+
cd "$FOLDER"
16+
git pull $URL
17+
fi
18+
19+
if [ $1 = "start" ]; then
20+
./runserver
21+
fi
22+
if [ $1 = "stop" ]; then
23+
./stopserver
24+
fi

0 commit comments

Comments
 (0)