Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CroneKorkN committed Jan 19, 2022
1 parent 02fab9b commit 39c8bc3
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,22 @@ Provide access to a subtree of the filesystem via http. Simply. Supports
Install crystal-lang (https://crystal-lang.org/) and checkout the repo.

```
cd webfs
crystal webfs -- --root ~ --listen 127.0.0.1 --port 3030
crystal run webfs.cr -- --root . --listen 127.0.0.1 --port 3030
```

## macos
## build on debian
```
brew install pkg-config
brew install openssl
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash
sudo apt-get install crystal libz-dev libssl-dev
```

## build release
## build on mac
```
BUILDSERVER=159.69.89.131
scp -r ~/Projekte/webfs/* $BUILDSERVER:~
ssh $BUILDSERVER crystal build webfs.cr --release --static
ssh $BUILDSERVER ls -hal webfs
scp $BUILDSERVER:~/webfs ~/Projekte/isac/bw/bundles/webfs/files
brew install pkg-config openssl crystal
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
```

## prepare ubuntu 18.04 buildserver
## build release
```
curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash
sudo apt-get install crystal libz-dev libssl-dev
crystal build webfs.cr --release --static
```

0 comments on commit 39c8bc3

Please sign in to comment.