Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
echo " "
echo " _____ _____ _____ "
echo "| __| | |"
echo "|__ | --| | | |"
echo "|_____|_____|_|_|_|"
echo " webKnossos installer "
command -v brew >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing homebrew ~~~~"
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
}
command -v node >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing node ~~~~"
brew update
brew install node
}
command -v git >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing git ~~~~"
brew update
brew install git
}
command -v psql >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing postgresql ~~~~"
brew install postgresql
brew services start postgresql
createdb
psql -c "CREATE DATABASE webknossos;"
psql -c "CREATE USER postgres WITH ENCRYPTED PASSWORD 'postgres';"
psql -c "GRANT ALL PRIVILEGES ON DATABASE webknossos TO postgres;"
}
command -v gfind >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing gfind ~~~~"
brew install findutils
}
command -v gsed >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing GNU sed ~~~~"
brew install gnu-sed
}
echo ""
echo "~~~~ Cloning webknossos project ~~~~"
git clone git@github.com:scalableminds/webknossos.git
cd webknossos
mkdir binaryData
echo
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Finished automatic install :)"
echo "Todo:"
echo "* put binary data folder in 'webknossos/binaryData'"
echo "* './sbt run'"
@jstriebel

This comment has been minimized.

Copy link

@jstriebel jstriebel commented Jan 24, 2019

Since scalableminds/webknossos#3613 you should start wk with yarn start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment