updated README and installation-instructions
This commit is contained in:
parent
1cc0962528
commit
1986d410ce
35
README.md
35
README.md
@ -9,24 +9,27 @@ At the moment there is nothing much to see here but a bit of playing around with
|
|||||||
1. Install Stack like [http://docs.haskellstack.org/en/stable/README.html]()
|
1. Install Stack like [http://docs.haskellstack.org/en/stable/README.html]()
|
||||||
2. install postgres (i use v. 9.3)
|
2. install postgres (i use v. 9.3)
|
||||||
|
|
||||||
```
|
```{.bash}
|
||||||
sudo apt-get install -y postgresql-9.3 libpg-dev
|
sudo apt-get install -y postgresql-9.3 libpg-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
3. create user and database inside a psql-shell as user postgres:
|
3. create user and database inside a psql-shell as user postgres:
|
||||||
|
|
||||||
|
```{.bash}
|
||||||
|
sudo su postgres
|
||||||
|
psql
|
||||||
```
|
```
|
||||||
CREATE ROLE neat;
|
|
||||||
ALTER ROLE neat LOGIN;
|
```{.sql}
|
||||||
|
CREATE ROLE neat WITH LOGIN PASSWORD 'neat';
|
||||||
CREATE DATABASE neat;
|
CREATE DATABASE neat;
|
||||||
GRANT ALL ON DATABASE neat TO neat;
|
GRANT ALL ON DATABASE neat TO neat;
|
||||||
```
|
```
|
||||||
4. clone this repository, invoke the install.sh to also download the dependencies and install yesod-bin and build the project
|
4. clone this repository and install yesod-bin and build the project
|
||||||
|
|
||||||
```
|
```{.bash}
|
||||||
git clone https://github.com/Drezil/neat
|
git clone https://github.com/Drezil/neat
|
||||||
cd neat
|
cd neat
|
||||||
./install.sh
|
|
||||||
stack setup
|
stack setup
|
||||||
stack install yesod-bin
|
stack install yesod-bin
|
||||||
stack build
|
stack build
|
||||||
@ -34,12 +37,16 @@ At the moment there is nothing much to see here but a bit of playing around with
|
|||||||
|
|
||||||
7. Get the current postgres-data-dump from `https://www.fuzzwork.co.uk/dump/postgres-latest.dmp.bz2` and restore it into the `neat` database:
|
7. Get the current postgres-data-dump from `https://www.fuzzwork.co.uk/dump/postgres-latest.dmp.bz2` and restore it into the `neat` database:
|
||||||
|
|
||||||
```
|
```{.bash}
|
||||||
sudo su postgres
|
sudo su postgres
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://www.fuzzwork.co.uk/dump/postgres-latest.dmp.bz2
|
wget https://www.fuzzwork.co.uk/dump/postgres-latest.dmp.bz2
|
||||||
bzip2 -d postgres-latest.dmp.bz2
|
bzip2 -d postgres-latest.dmp.bz2
|
||||||
pg_restore -d neat postgres-latest.dmp
|
pg_restore -d neat postgres-latest.dmp
|
||||||
```
|
```
|
||||||
|
|
||||||
8. run yesod in development-mode using stack with ```stack exec yesod devel```
|
8. run yesod in development-mode using stack with `stack exec yesod devel` or use neat in production-mode with `stack exec neat`
|
||||||
|
|
||||||
|
9. maybe(?) correct the access-rights in the neat-database to the neat-user.
|
||||||
|
|
||||||
|
TODO: Find out how!
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mkdir deps
|
|
||||||
cd deps
|
|
||||||
git clone https://github.com/Drezil/yesod-auth-oauth2
|
|
||||||
git clone https://github.com/Drezil/eve-api
|
|
||||||
cd ..
|
|
||||||
#cabal install --only-dependencies --reorder-goals
|
|
Loading…
Reference in New Issue
Block a user