Paste service written in Haskell for functional programmers
Haskell JavaScript CSS Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
sql
src Load up spamDB once on start-up. Feb 3, 2017
static Cleaner color Jan 31, 2017
upstream/snap-app
.gitignore
README.md Complete rename in README Apr 18, 2016
Setup.hs
cabal.config Add cabal freeze file Dec 19, 2014
lpaste.cabal Use binary to store spamdb Dec 4, 2016
lpaste.conf.sample Complete rename in README Apr 18, 2016
stack.yaml Port to GHC 7.10, latest LTS, builds with Stack Nov 25, 2015

README.md

lpaste

The codebase for http://lpaste.net/

Build

$ stack build

Database setup

$ sudo su postgres --command 'createuser lpaste -P'
$ sudo su postgres --command 'createdb lpaste -O lpaste'
$ cat sql/schema.sql | psql -U lpaste -h 127.0.0.1 -d lpaste

Configuration & Running

$ cp lpaste.conf.sample lpaste.conf

Edit lpaste.conf.

$ stack exec lpaste lpaste.conf