ialbert / biostar-central

Biostar Q&A

Home Page:http://www.biostars.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relation "forum_post" does not exist

fangpingmu opened this issue · comments

I have deployed biostar-central through uWSGI + nginx to a server. postgresql is used as the database. I have added DATABASE biostardb.

CREATE USER "www-forum" WITH ENCRYPTED PASSWORD '*****';
CREATE DATABASE biostardb;
GRANT ALL PRIVILEGES ON DATABASE biostardb TO "www-forum";

When I open a browser, I receive a programming error.

ProgrammingError at /

relation "forum_post" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "forum_post" INNER JOIN "f...
^
Are there something missing in my database setup?

you have to run the migration to initialize the database

see the Makefile for how we set it all up:

make init

https://github.com/ialbert/biostar-central/blob/master/Makefile#L96