Skip to content

Abridged setup guide

Mike Hoffert edited this page Apr 8, 2015 · 7 revisions

You will need Scala 2.11.5+ and PostgreSQL 9.3+. The database can be on a different server.

  1. 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. You should also specify the application secret, the contact email, and admin user accounts.
  2. Place the database/eatsafe_synonyms.syn file in the /usr/share/postgresql/9.3/tsearch_data folder of the database server, where "9.3" is your PostgreSQL version.
  3. With the database folder as the working directory, edit the createDatabase.sh file with your DB credentials, then run the file.
  4. Run ./activator ~run in the root directory.

That will get everything working in development mode. 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).

Clone this wiki locally