File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- @ echo off
1+ @ echo off
22ECHO ***************************************************************
33ECHO Starting Rapture Demo Client Environment Setup
44SET " REFLEX_RUNNER_LATEST = https://github.com/RapturePlatform/Rapture/releases/latest"
55SET " REFLEX_RUNNER_DOWNLOAD_PREFIX = https://github.com/RapturePlatform/Rapture/releases/download"
66SET " RAPTURE_SETUP_DIR = %CD% "
7+ SET " RAPTURE_HOME = %CD% \.."
78
89REM "*************************************************************"
910REM get etienne credentials to setup env info
1011SET " etienneurl = developer.incapture.net"
11- SET /P user = Enter Etienne User:
12- SET /P pass = Enter Etienne Password:
12+ SET /P user = Enter Incapture User:
13+ SET /P pass = Enter Incapture Password:
1314
1415REM "*************************************************************"
1516REM create a hashed password usin md5.exe
@@ -23,7 +24,7 @@ SET "LOGIN_URL=http://%etienneurl%:8080/login/login?user=%user%^&password=%hashp
2324SET " SERVICE_URL = http://%etienneurl% :8080/curtisscript/getEnvInfo?username=%user% "
2425
2526REM "*************************************************************"
26- REM call login url to get cookie and then get the enn details
27+ REM call login url to get cookie and then get the enn details
2728%CD% \tools\curl --silent --cookie-jar cookiefile.txt %LOGIN_URL% > nul 2 >& 1
2829%CD% \tools\curl --silent --cookie cookiefile.txt %SERVICE_URL% > tmpenvinfo.txt
2930
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ HOST="http://developer.incapture.net:8080"
33REFLEX_RUNNER_LATEST_HOST=" https://github.com"
44REFLEX_RUNNER_LATEST=" $REFLEX_RUNNER_LATEST_HOST /RapturePlatform/Rapture/releases/latest"
55
6+ # write the export statements to a file to be sourced later
7+ env_var_filename=" .rapture_client.$RANDOM .env"
8+
69cur_dir=$( pwd)
710pattern=" (.*RaptureTutorials).*"
811if [[ $cur_dir =~ $pattern ]]; then
@@ -111,8 +114,7 @@ if [ -z "$reflex_runner_path" ]; then
111114 fi
112115fi
113116
114- # write the export statements to a file to be sourced later
115- env_var_filename=" .rapture_client.$RANDOM .env"
117+
116118
117119if [ -n " $reflex_runner_path " ] && [ ! $reflex_runner_is_in_path ] ; then
118120 add_to_path=$( dirname $reflex_runner_path )
157159done
158160
159161echo " export RAPTURE_TUTORIAL_CSV=$csv_path " >> $env_var_filename
160-
162+ echo " export RAPTURE_HOME= $rapture_tutorials_dir " >> $env_var_filename
161163
162164
163165# Also write a welcome banner to the file and change the prompt so it's easier for the user
@@ -183,4 +185,3 @@ screen -h 2000 -S Rapture sh -c "exec /bin/bash -init-file ./$env_var_filename"
183185
184186# will execute after screen session exits
185187rm $env_var_filename
186-
You can’t perform that action at this time.
0 commit comments