Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update start scripts. #42

Merged
merged 1 commit into from
Nov 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/start-brightics.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ IF ERRORLEVEL 1 (
ECHO Python is missing. Ensure it is installed and placed in your PATH.
EXIT /B
)
IF NOT EXIST "%BRIGHTICS_HOME%lib\nodejs\node.exe" (
IF NOT EXIST "%BRIGHTICS_HOME%lib\node\node.exe" (
ECHO Node.js is missing. Ensure Visual-analytics is installed.
EXIT /B
)
Expand Down Expand Up @@ -63,7 +63,7 @@ ping -n 30 127.0.0.1 > nul

:: Visual Analytics
CD /d "%BRIGHTICS_HOME%visual-analytics"
START /B CMD /C "%BRIGHTICS_HOME%lib\nodejs\node.exe" app.js --user_id %USER_ID% --access_token %ACCESS_TOKEN%
START /B CMD /C "%BRIGHTICS_HOME%lib\node\node.exe" app.js --user_id %USER_ID% --access_token %ACCESS_TOKEN%

If Not Exist "%USERPROFILE%\Desktop\Brightics Studio.lnk" (
"%BRIGHTICS_HOME%lib\shortcut\Shortcut.exe" /f:"%USERPROFILE%\Desktop\Brightics Studio.lnk" /a:c /t:"%BRIGHTICS_HOME%start-brightics.cmd" /I:"%BRIGHTICS_HOME%\lib\shortcut\favicon.ico"
Expand Down
4 changes: 2 additions & 2 deletions bin/start-brightics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BRIGHTICS_PACKAGES_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null &&
# Check requirements
command -v java >/dev/null 2>&1 || { echo >&2 "Java is missing. Ensure it is installed and placed in your PATH."; exit 1; }
command -v python >/dev/null 2>&1 || { echo >&2 "Python is missing. Ensure it is installed and placed in your PATH."; exit 1; }
command -v $BRIGHTICS_PACKAGES_HOME/lib/nodejs/bin/node >/dev/null 2>&1 || { echo >&2 "Node.js is missing. Ensure Visual-analytics is installed."; exit 1; }
command -v $BRIGHTICS_PACKAGES_HOME/lib/node/node >/dev/null 2>&1 || { echo >&2 "Node.js is missing. Ensure Visual-analytics is installed."; exit 1; }

if [ -f "$BRIGHTICS_PACKAGES_HOME/lib/brightics_python_env/build.info" ]
then
Expand All @@ -39,5 +39,5 @@ cd $BRIGHTICS_PACKAGES_HOME/brightics-server

# Visual Analytics
cd $BRIGHTICS_PACKAGES_HOME/visual-analytics
$BRIGHTICS_PACKAGES_HOME/lib/nodejs/bin/node app.js --user_id $USER_ID --access_token $ACCESS_TOKEN &>/dev/null &
$BRIGHTICS_PACKAGES_HOME/lib/node/node app.js --user_id $USER_ID --access_token $ACCESS_TOKEN &>/dev/null &