Update README

This commit is contained in:
Sibi Prabakaran 2018-08-25 22:13:26 +05:30
parent 9ea91909c2
commit 6498a6365e
No known key found for this signature in database
GPG Key ID: D19E3E0EBB557613

View File

@ -7,3 +7,30 @@ Server for stable, curated Haskell package sets
This repo is part of the [Stackage project](https://github.com/fpco/stackage),
and the live server can be viewed at https://www.stackage.org.
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
postgresql://postgres:password@localhost:5432/stackage
## Building locally
Build locally by passing the `dev` flag to it:
``` shellsession
$ stack build . --flag stackage-server:dev
```
Now, initially you need to run the cron job and create and populate the database:
``` shellsession
$ export PGSTRING=postgresql://postgres:password@localhost:5432/stackage
$ stack exec stackage-server-cron
```
After this, try running in the stackage server:
``` shellsession
$ stack exec stackage-server
```