You have to download the source code first:
https://www.traccar.org/source-code/
Then you can edit it.
This might be useful as well:
yes, I have downloaded it made the necessary changes built it, and released the build, by running npm run build
.
now I have the file in the build folder. Now how to replace them on VPS
Just replace the modern folder with the result of your build.
I have followed the steps from the tutorial https://www.traccar.org/install-digitalocean/ to install traccar on VPS
how to I replace the modern folder with the result of your build?
what command to use in CMD to replace the file?
Are you serious? You don't know how to copy files? I'm sure there are countless resources online where you can find an answer. It's not something specific to Traccar.
sorry my bad i want to know the director where I need to replace the folder.
example
cat > /opt/traccar/conf/traccar.xml
to edit traccar.xml
The folder is /opt/traccar/modern
, if that's what you're asking.
so now I have to replace the modern folder /opt/traccar/modern
with the build folder /opt/traccar/build
which I got after npm run build
There should be no /opt/traccar/build
. You have to replace the content of the folder. The folder should stay the same. That's what replacing means.
I am using this commands cp -r /opt/traccar/modern /opt/traccar/modern_backup
cp -r /path/to/modern/* /opt/traccar/modern
by renaming the build as modern
hi, I have installed the Traccar on VPS from wget https://www.traccar.org/download/traccar-linux-64-latest.zip ...
need help to edit the web app on the VPS how to edit it.please some help me