Buid from source

emmanuelh2 months ago

To build from source, do I just need to do this? Will the migrations be done automatically? Sorry for the question; I don’t have much experience.

Clone the repository:
Open a terminal and type:

git clone --recursive https://github.com/traccar/traccar.git  
cd traccar  

Compile the server:
Run:

./gradlew assemble  

This will generate tracker-server.jar in the target folder.

Replace the original file:
Stop the Traccar service:

sudo systemctl stop traccar  

Replace the original file:

sudo cp target/tracker-server.jar /opt/traccar/lib/tracker-server.jar  

Restart Traccar:

sudo systemctl start traccar  
Anton Tananaev2 months ago

Yes, kind of. You have to use the right version though.