Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
refactor installation scripts [use develop branch temporarily]
Browse files Browse the repository at this point in the history
  • Loading branch information
smahmed776 committed Oct 25, 2023
1 parent b23f5cb commit fd4fbd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
10 changes: 3 additions & 7 deletions static/scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ function cloneRepo {
$repo, $location, $branch
)
$gitURL = "https://github.com/$repo.git"
git clone --branch $branch --recurse-submodules $gitURL $location
git clone --branch $branch $gitURL $location
Set-Location $location
}

info_msg "Cloning flojoy-ai/studio repo..."

cloneRepo "flojoy-ai/studio" "studio" "main"

info_msg "Creating a python virtual environment..."

& python -m venv venv
cloneRepo "flojoy-ai/studio" "studio" "develop"

info_msg "Starting the project..."

& .\flojoy.ps1 -v venv
& .\flojoy.ps1
12 changes: 2 additions & 10 deletions static/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@ info_msg() {

info_msg "Cloning flojoy-ai/studio repo..."

git clone --branch main --recurse-submodules https://github.com/flojoy-ai/studio.git studio
git clone --branch develop https://github.com/flojoy-ai/studio.git studio

cd studio

info_msg "Creating a python virtual environment..."

python3 -m venv venv

if [ $? -ne 0 ]; then
python -m venv venv
fi

info_msg "Starting the project..."

bash flojoy -v venv
bash flojoy

0 comments on commit fd4fbd8

Please sign in to comment.