From 6498a6365e7bb4dba09b89f470ed4e33dea3bc29 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Sat, 25 Aug 2018 22:13:26 +0530 Subject: [PATCH] Update README --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index dc4dc65..6b04a84 100644 --- a/README.md +++ b/README.md @@ -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 +``` + +