We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doing stack build I get the following error:
stack build
-- While building package postgresql-libpq-0.9.4.2 using: /tmp/stack-9b8112fa643e992a/postgresql-libpq-0.9.4.2/.stack-work/dist/x86_64-linux/Cabal-2.4.0.1/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 configure --with-ghc=/home/simon/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc --with-ghc-pkg=/home/simon/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/pkgdb --libdir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/lib --bindir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/bin --datadir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/share --libexecdir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/libexec --sysconfdir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/etc --docdir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/doc/postgresql-libpq-0.9.4.2 --htmldir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/doc/postgresql-libpq-0.9.4.2 --haddockdir=/home/simon/.stack/snapshots/x86_64-linux/lts-13.26/8.6.5/doc/postgresql-libpq-0.9.4.2 --dependency=Cabal=Cabal-2.4.1.0-9MZFDeNrcJI10bcroa6pq8 --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=unix=unix-2.7.2.2 Process exited with code: ExitFailure 1
I spent a little time figuring out that on Ubuntu I need to apt install libpq-dev to compile this.
apt install libpq-dev
For running Postgres, I need to
$ sudo apt install postgresql postgresql-contrib $ sudo service postgres start $ sudo -u postgres psql postgres=# create database "issue-wanted"; postgres=# create user simon; postgres=# grant all privileges on database "issue-wanted" to simon;
I modified pg_hba.conf with the lines
pg_hba.conf
local all simon trust host all simon 0.0.0.0/0 trust
(This is a little unsafe, I realize, but for some reason 127.0.0.1/8 didn't cut it.)
127.0.0.1/8
and changed user=simon in config.toml and added listen_address = '127.0.0.1' in /etc/postgresql/10/main/postgresql.conf.
user=simon
listen_address = '127.0.0.1'
/etc/postgresql/10/main/postgresql.conf
I then restarted Postgres and initialized the database manually:
$ sudo service postgres restart $ psql issue-wanted < sql/schema.sql $ psql issue-wanted < sql/seed.sql $ stack exec issue-wanted
At this point the /issues endpoint is responding positively!
/issues
Perhaps we should document some of this in README.md?
README.md
The text was updated successfully, but these errors were encountered:
Thank you for finding! All of this is important. I will work on adding it to the README.
Sorry, something went wrong.
[#81] Update docs
40f7b31
Resolves #81
[#81] Update docs (#82)
7c0a9bd
* [#81] Update docs Resolves #81
rashadg1030
Successfully merging a pull request may close this issue.
Doing
stack build
I get the following error:I spent a little time figuring out that on Ubuntu I need to
apt install libpq-dev
to compile this.For running Postgres, I need to
I modified
pg_hba.conf
with the lines(This is a little unsafe, I realize, but for some reason
127.0.0.1/8
didn't cut it.)and changed
user=simon
in config.toml and addedlisten_address = '127.0.0.1'
in/etc/postgresql/10/main/postgresql.conf
.I then restarted Postgres and initialized the database manually:
At this point the
/issues
endpoint is responding positively!Perhaps we should document some of this in
README.md
?The text was updated successfully, but these errors were encountered: