-
Notifications
You must be signed in to change notification settings - Fork 2
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.
- 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. - 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. - With the
database
folder as the working directory, edit thecreateDatabase.sh
file with your DB credentials, then run the file. - 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).