How to install Traccar web from source code on a ovh vps

EclYpZz03 years ago

Hello,

I'm new to application deployment, I managed to deploy the traccar release on a server but now I want to deploy the application from the source code to make changes.

My concern is that I don't really understand the documentation and how to proceed to achieve this deployment. Would it be possible to have a list of tasks to perform and/or commands to enter on my server?

Thanks by advance

Anton Tananaev3 years ago

Compile the app and replace the old one with the compiled one.

EclYpZz03 years ago

I will try that thank you for ur reactivity

EclYpZz03 years ago

Hello,

I tried to compile the app by following the video but i have a problem with maven, the new code does not have pom.xml so the mvn package command don't work.

Is there another way to do it or did I miss a step?

Thanks by advance

Anton Tananaev3 years ago

I think you're confusing backend code with the web app.

EclYpZz03 years ago

Yeah i'm a bit lost sorry.
Actually i get the source code from git with git clone on intellij, i followed the documentation and made a ./gradlew assembly. What more do I have to do to compile the app?
When the code will be compiled is it this the opt/traccar folder that I have to replace or are there other files to modify?

Sorry again for my lack of knowledge, thanks for your time.

Anton Tananaev3 years ago

Are you trying to compile the web app or the backend?

EclYpZz03 years ago

I followed the 'Build from source' documentation so i tried npm install and run on traccar-web/modern, i want to host traccar from source instead of the release so i need to compile the web app ?

Anton Tananaev3 years ago

If you want to compile everything from the source code, you probably need at least some software development experience. I can't help you if you don't understand even basics.

EclYpZz03 years ago

Hello,

I've a last question, I managed to compile the code without error thanks to examples in the forum, so I wanted to know if I only had to replace the opt/traccar folder or if there were other actions to perform?

Thanks again for your time.