Have you done this part?
Note that you also need to recompile the modern app for it to work correctly on a new path.
[root@iZj6c7b8cg52hq2yie2lo1Z modern]# npm run build
npm ERR! Linux 3.10.0-1160.105.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! path /opt/traccar/modern/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/opt/traccar/modern/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/opt/traccar/modern/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /opt/traccar/modern/npm-debug.log
[root@iZj6c7b8cg52hq2yie2lo1Z ~]# cd /opt/traccar/traccar-web-master/
[root@iZj6c7b8cg52hq2yie2lo1Z traccar-web-master]# npm run build
> traccar-web@ build /opt/traccar/traccar-web-master
> sencha compile --classpath=web/app.js,web/app,node_modules/extjs-gpl/packages/core/src,node_modules/extjs-gpl/packages/core/overrides,node_modules/extjs-gpl/classic/classic/src,node_modules/extjs-gpl/classic/classic/overrides exclude -all and include -recursive -file web/app.js and exclude -namespace=Ext and concatenate -closure web/app.min.js
sh: sencha: command not found
npm ERR! Linux 3.10.0-1160.105.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! traccar-web@ build: `sencha compile --classpath=web/app.js,web/app,node_modules/extjs-gpl/packages/core/src,node_modules/extjs-gpl/packages/core/overrides,node_modules/extjs-gpl/classic/classic/src,node_modules/extjs-gpl/classic/classic/overrides exclude -all and include -recursive -file web/app.js and exclude -namespace=Ext and concatenate -closure web/app.min.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the traccar-web@ build script 'sencha compile --classpath=web/app.js,web/app,node_modules/extjs-gpl/packages/core/src,node_modules/extjs-gpl/packages/core/overrides,node_modules/extjs-gpl/classic/classic/src,node_modules/extjs-gpl/classic/classic/overrides exclude -all and include -recursive -file web/app.js and exclude -namespace=Ext and concatenate -closure web/app.min.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the traccar-web package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sencha compile --classpath=web/app.js,web/app,node_modules/extjs-gpl/packages/core/src,node_modules/extjs-gpl/packages/core/overrides,node_modules/extjs-gpl/classic/classic/src,node_modules/extjs-gpl/classic/classic/overrides exclude -all and include -recursive -file web/app.js and exclude -namespace=Ext and concatenate -closure web/app.min.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs traccar-web
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls traccar-web
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /opt/traccar/traccar-web-master/npm-debug.log
How do I recompile the moder? Is there any relevant document I can refer to? Didn’t I modify the settings of Pweb server?
[root@iZj6c7b8cg52hq2yie2lo1Z traccar]# cd traccar-web-master/
[root@iZj6c7b8cg52hq2yie2lo1Z traccar-web-master]# cd modern/
[root@iZj6c7b8cg52hq2yie2lo1Z modern]# npm run build
> traccar@5.12.0 build /opt/traccar/traccar-web-master/modern
> vite build
sh: vite: command not found
npm ERR! Linux 3.10.0-1160.105.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! traccar@5.12.0 build: `vite build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the traccar@5.12.0 build script 'vite build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the traccar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! vite build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs traccar
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls traccar
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
You probably haven't installed dependencies. I also suspect that you haven't actually changed any of the code.
I just want to change http://ip:8082
to https://www.i-cna.com/gps
. This seems to only require changing the configuration of the WEB SERVER. I changed the configuration, but it did not take effect.
This seems to only require changing the configuration of the WEB SERVER
I already told you it's not correct. You have to change and recompile the web app.
I set the content of conf, but when I connect to
www.i-cna.com/gps
, I only see Traccar in the name of the web page, but the content of the web page is blank.