Skip to content

Commit

Permalink
added script to setup socketcluster test-server, added cloned repo to…
Browse files Browse the repository at this point in the history
… ignore
  • Loading branch information
sacOO7 committed Feb 8, 2020
1 parent 8a9c1a7 commit 8d5ea36
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ fastlane/test_output
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
iOSInjectionProject/

SCTestSever/sc-testserver
24 changes: 24 additions & 0 deletions SCTestSever/scserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

if test "$#" -ne 1; then
echo "Please provide start or stop as argument"
exit 1
fi

FOLDER="sc-testserver"
URL="https://github.com/sacOO7/sc-testserver"

if [ ! -d "$FOLDER" ] ; then
git clone $URL $FOLDER
cd "$FOLDER"
else
cd "$FOLDER"
git pull $URL
fi

if [ $1 = "start" ]; then
./runserver
fi
if [ $1 = "stop" ]; then
./stopserver
fi

0 comments on commit 8d5ea36

Please sign in to comment.