Split build and install in build from source instructions.

Stack refuses to build when run under sudo.
This commit is contained in:
Remco Bloemen
2016-03-07 17:54:37 +01:00
parent c09adb967a
commit 82214856b6
+2 -1
View File
@@ -55,7 +55,8 @@ sudo apt-get install -y libpq-dev
```bash
git clone https://github.com/begriffs/postgrest.git
cd postgrest
sudo stack install --install-ghc --local-bin-path /usr/local/bin
stack build --install-ghc
sudo stack install --allow-different-user --local-bin-path /usr/local/bin
```
* Run the server