-
Notifications
You must be signed in to change notification settings - Fork 54
Setup guide
F43nd1r edited this page Jan 26, 2018
·
14 revisions
Note: This guide assumes that you already have
- a java webserver (examples assume Tomcat 8.5)
- a SQL server (examples assume MySQL 5.7)
set up.
- Create a new database in your SQL server (Name it e.g.
acra
) - Create a new user in your SQL server (Name e.g.
acra
. remember its password, we'll need it later) - Restrict the users access to the newly created database (Optional but recommended)
- Find the home directory of the user running the webserver (e.g.
getent passwd tomcat8
returnsusr/share/tomcat8
as home directory of mytomcat8
user) - Create a folder named
.acra
in this directory (e.g./usr/share/tomcat8/.acra
) - Create a file named
application.properties
in that directory (e.g./usr/share/tomcat8/.acra/application.properties
) - Add the following lines in that file and adjust them to your setup:
# spring.datasource.url=jdbc:mysql://<sql host>:<sql port>/<database name>?useSSL=false, e.g.
spring.datasource.url=jdbc:mysql://localhost:3306/acra?useSSL=false
# spring.datasource.username=<sql user name>, e.g.
spring.datasource.username=acra
# spring.datasource.password=<sql user password>, e.g.
spring.datasource.password=password1234
# spring.jpa.database-platform=<sql dialect>, available dialects https://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/dialect/package-summary.html, e.g.
spring.jpa.database-platform=org.hibernate.dialect.MySQL57Dialect
# acra.user.name=<default user name>, optional but recommended, e.g.
acra.user.name=admin
# acra.user.password=<default user password>, optional but recommended, e.g.
acra.user.password=admin
- Download the latest release
- Deploy it to your java web server
- Open the deployed application in any web browser
- Log in with the default user credentials you set above
- Click on "New App" and follow the instructions
- In the end you'll be presented with an ACRA configuration which you should paste into your android project