Error when running ./minify.sh

Zuo Bruno6 years ago

I have done the things possible, but when I run ./minify.sh I get his error
Cannot use configured version 6.6.0.13
Cannot find usable Sencha Cmd version in /

I got all the information from this tutorial https://www.traccar.org/forums/topic/build-traccar-from-source-via-command-line-method-on-ubuntu-server-16-10/

Now I am confused as one can be because it was support to work

mahdi norouzi6 years ago

I had like as your problem and i do this Under steps and now It's okay

please following :

1-download and install sencha cmd

2-download and unzip sdk extjs GPL

3-in sencha cmd type:

Note: don'n forget that replace your path of extract sdk extjs gpl instead "/root/ext-6.2.0/"

next step type in cmd:

sencha compile --classpath=app.js,app,/root/ext-6.2.0/packages/core/src,/root/ext-6.2.0/packages/core/overrides,/root/ext-6.2.0/classic/classic/src,/root/ext-6.2.0/classic/classic/overrides \
       exclude -all \
       and \
       include -recursive -file app.js \
       and \
       exclude -namespace=Ext \
       and \
       concatenate -closure app.min.js
Zuo Bruno6 years ago

@Mahdi Thank for the answer, However, I completely get lost at step 3
Can you explain better please

mahdi norouzi6 years ago

@zuo
"/root/ext-6.2.0/" is path of Sdk extjs GPL for me
but
You must replace your path Sdk extjs instead "/root/ext-6.2.0/"

Cd /opt/traccar/web

And next run command into sencha

Zuo Bruno6 years ago

Thank you so much @Mahdi, I will try this right away and let you know

Zuo Bruno6 years ago

@Mahdi, Thanks alot, it worked, I copied tools folder to /opt/traccar/tools and then included Sdk extjs GPL to /opt/traccar/web and now when I do ./minify.sh it works.

However when I change the site title at /opt/traccar/web/simple/index.html and minify it, nothing seems to change. is there a problem? or smoething I am doing wrong?

mahdi norouzi6 years ago

@Zuo

you don'n change simple/index.html

you must change release.html in traccar/web

Zuo Bruno6 years ago

@Mahdi, Thanks again, I have made changes, and then brought them back, then i try now to login to web sytem and all I get to turning svg for loading, cannot get into login screen I just posted the error here: https://www.traccar.org/forums/topic/traccar-will-not-show-login-page-just-keeps-loading/
Please help me. I am going mad

Zuo Bruno6 years ago

I get this error
Cannot use configured version 6.6.0.13
Cannot find usable Sencha Cmd version in /opt/traccar
everything else I try fails

mahdi norouzi6 years ago

you first type 'sencha' in terminal linux
if installed get :
Sencha Cmd v6.6.0.13

else you must download and install

Zuo Bruno6 years ago

@Mahdi Thanks again I try this