1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 18:54:53 +09:00
vervis/INSTALL.md

48 lines
1.3 KiB
Markdown
Raw Normal View History

2016-03-06 20:58:48 +09: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-06 20:58:48 +09:00
Install Darcs, GHC 7.10.3 and a recent `stack` version.
2016-03-06 20:58:48 +09:00
Download the Vervis repo:
2016-05-22 06:32:18 +09:00
$ darcs clone http://hub.darcs.net/fr33domlover/vervis
$ cd vervis
2016-05-22 06:32:18 +09:00
Check in `stack.yaml` near the top which extra repos are required. At the time
of writing, there are 4 of them (`hit-harder`, `hit-graph`, `hit-network` and
`ssh`). Then clone them. For example:
2016-03-06 20:58:48 +09:00
2016-05-22 06:32:18 +09:00
$ darcs clone http://hub.darcs.net/fr33domlover/ssh
2016-03-06 20:58:48 +09:00
Update `stack.yaml` to specify that path in the `packages` section:
$ vim stack.yml
Generate a new SSH key with a blank password:
2016-03-07 09:37:07 +09:00
$ ssh-keygen -t rsa -f config/ssh-host-key
2016-03-06 20:58:48 +09: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-03-06 20:58:48 +09:00
Browse to `http://localhost:3000` and have fun.