-
Notifications
You must be signed in to change notification settings - Fork 2
Abridged setup guide
Mike Hoffert edited this page Mar 25, 2015
·
7 revisions
- Install Scala 2.11.5+.
- Install PostgreSQL 9.3+.
- Provide database credentials in
conf/application.conf
. Both the default and test database must be set, but the test database can be given the same credentials if you don't plan to run the tests. This should be (but doesn't have to be) an empty database. - Place the
database/eatsafe_synonyms.syn
file in the/usr/share/postgresql/9.3/tsearch_data
folder, where "9.3" is your PostgreSQL version. - With the
database
folder as the working directory, connect to the database and run the following scripts in order:CreateTables.sql
statements.sql
RestoreCoordinates.sql
CreateSearchTable.sql
- Run
./activator ~run
in the root directory.
To run in production mode on a server, edit the port in startServer.sh
to use port 80, then run sudo ./startServer.sh
(or just use the default port, which is 8080).