2016-03-06 12:58:48 +01:00
|
|
|
Vervis is still in early development. These instructions may be incomplete
|
|
|
|
and/or slightly outdated. At the time of writing, you can get a running Vervis
|
|
|
|
instance if you follow the steps below.
|
2016-03-05 04:55:06 +01:00
|
|
|
|
2016-03-06 12:58:48 +01:00
|
|
|
Install Darcs, GHC 7.10.3 and a recent `stack` version.
|
2016-01-28 15:15:54 +01:00
|
|
|
|
2016-03-06 12:58:48 +01:00
|
|
|
Download the Vervis repo:
|
2016-01-28 15:15:54 +01:00
|
|
|
|
2016-03-06 12:58:48 +01:00
|
|
|
$ darcs get http://hub.darcs.net/fr33domlover/vervis
|
2016-01-28 15:15:54 +01:00
|
|
|
$ cd vervis
|
|
|
|
|
2016-03-06 12:58:48 +01:00
|
|
|
Download fr33domlover's modified `ssh` package:
|
|
|
|
|
|
|
|
$ darcs get http://hub.darcs.net/fr33domlover/ssh
|
|
|
|
|
|
|
|
Update `stack.yaml` to specify that path in the `packages` section:
|
|
|
|
|
|
|
|
$ vim stack.yml
|
|
|
|
|
2016-03-07 01:33:59 +01:00
|
|
|
Generate a new SSH key with a blank password:
|
|
|
|
|
|
|
|
$ ssh-keygen -t rsa -f config/ssh-private-key
|
|
|
|
|
2016-03-06 12:58:48 +01:00
|
|
|
Install PostgreSQL. You'll need the server and the client library development
|
|
|
|
files.
|
|
|
|
|
|
|
|
$ sudo apt-get install postgresql # TODO see exactly which pages are needed
|
|
|
|
|
|
|
|
Create a new PostgreSQL user and a new database.
|
|
|
|
|
|
|
|
$ #TODO take this from the vervis ticket I wrote...
|
|
|
|
|
|
|
|
Update `stack.yaml` to specify correct database connection details.
|
|
|
|
|
|
|
|
$ vim stack.yaml
|
|
|
|
|
|
|
|
Build.
|
|
|
|
|
|
|
|
$ stack build --flag vervis:dev
|
|
|
|
|
|
|
|
Run.
|
|
|
|
|
|
|
|
$ stack exec vervis
|
2016-01-28 15:15:54 +01:00
|
|
|
|
2016-03-06 12:58:48 +01:00
|
|
|
Browse to `http://localhost:3000` and have fun.
|