-
-
Save normanrz/9128496 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected]: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'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since scalableminds/webknossos#3613 you should start wk with
yarn start
.