(02-09-2018, 03:03 AM)askmike Wrote: Unfortunately this has to do with windows bash. Documentation on how to use Gekko with Windows Bash was written by a contributor who is not very active in the project anymore.
I will probably remove this documentation soon since I don't use Windows nor Windows Bash and I don't understand all quirks (like this one).
I had zero problems doing it, it was as hard/simple as doing git pull + npm install.
I didn't really follow the guide though. Just pulled the repo from github and installed just like i would pull and install anything.
The only thing that might be confusing is:
1. Installing node on WSL (but the current guide explains how to do it properly, i already had it installed)
2. Installing Gekko to a folder that one has access to on Windows (for easier file management, the guide completely misses this)
Here's my short guide:
1. run bash (if you don't know how google 'install bash windows 10')
2. sudo su
3. apt-get update -y
4. curl -sL
https://deb.nodesource.com/setup_8.x | sudo -E bash -
5. apt-get install nodejs -y
6. apt-get install build-essential -y
3. apt-get install git -y
4. cd /mnt/c/
5. mkdir www
6. cd www
7. git clone git://github.com/askmike/gekko.git
8. cd gekko
9. npm install --only=production
10. npm install tulind
11. node gekko -ui
...or just use a bash script:
Code:
#!/bin/bash
apt-get update -y
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install nodejs -y
apt-get install build-essential -y
apt-get install git -y
cd /mnt/c/
mkdir www
cd www
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production
npm install tulind
node gekko -ui
All the code above could be hosted @ the Gekko repo and the install guide @ Win10 WSL could then just be to curl-install via that bash-script
0. Copy above, paste in some texteditor (e.g. notepad)
1. save as gekko_install.sh to c:/temp
2. open bash
3. sudo su
4. cd /mnt/c/temp
5.
. gekko_install.sh
(yes with the period/dot and space infront of gekko.sh)
--
Run with more memory
1. run bash
2. cd /mnt/c/www/gekko/web
3. node -max-old-space-size=8096 server.js