Jump to content


Photo

UniServerModule (extroot and uniroot)

extroot uniroot uniservermodule

  • Please log in to reply
11 replies to this topic

#1 Fenix

Fenix

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 258 posts
  • LocationBrazil

Posted 23 February 2016 - 09:32 AM

Hi Farshad,

 

After update to 0.99.80.1270 (1263 is work) is not work source below:

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
  ServerConfig: TInifile;
begin
 serverConfig := TInifile.create(gsAppPath + 'unigui.ini');
 port := serverConfig.readinteger('AppWeb', 'ServerPort', 1980);
 extroot := serverConfig.readstring('AppWeb', 'ExtjsPath', '');
 uniroot := serverConfig.readstring('AppWeb', 'UniPath', '');
 FreeAndNil(serverConfig);
end;
This version is not finding files extjs and unigui specified manualy.
Did you change anything?

 

 

Best regards


  • 0
Delphi Berlin
uniGui 1.0.0.1410
Windows Server 2012 64bit IIS

#2 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 23 February 2016 - 12:26 PM

Yes, I updated the rules and cleaned up what remained from initial versions. Please see updated PDF file.


  • 0

#3 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 23 February 2016 - 12:27 PM

Some Examples:
ExtRoot = "[ext]"     ExtJS Files are in <Runtime Package InstallFolder>\FMSoft\Framework\uniGUI/ext-x.y.z.build\ (*Recommended method )
ExtRoot = ".\[ext]"   ExtJS Files are in <server root>\ext-x.y.z.build\
ExtRoot = "C:\ExtJS\[ext]"    ExtJS Files are in C:\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\[ext]"    ExtJS Files are in <server root>\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\ext"     ExtJS Files are in <server root>\ExtJS\ext\


  • 0

#4 Fenix

Fenix

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 258 posts
  • LocationBrazil

Posted 23 February 2016 - 12:47 PM

Thanks Farshad.

 

I was putting "../uni-0.99.80.1270".

I put full path and worked.

 

Best regards.


  • 0
Delphi Berlin
uniGui 1.0.0.1410
Windows Server 2012 64bit IIS

#5 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 23 February 2016 - 01:32 PM

Or simply:

 

.\[uni]


  • 0

#6 Fenix

Fenix

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 258 posts
  • LocationBrazil

Posted 23 February 2016 - 01:37 PM

But for me, this option not work.

 

In my case leave like this:

ExtjsPath='H:\sistema\[ext]'
UniPath='H:\sistema\[uni]'
UniMobilePath='H:\sistema\[unim]'
 
I do not use the installer, just copy the directory to the server.
 
Regards

  • 0
Delphi Berlin
uniGui 1.0.0.1410
Windows Server 2012 64bit IIS

#7 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 23 February 2016 - 02:04 PM

Have you changed The ServerRoot?


  • 0

#8 Fenix

Fenix

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 258 posts
  • LocationBrazil

Posted 23 February 2016 - 02:19 PM

No,

 

That did not work:

ExtjsPath='H:\sistema\[ext]'
UniPath='H:\sistema\[uni]'
UniMobilePath='H:\sistema\[unim]'
 
I had to change to: 
ExtjsPath='H:\sistema\ext-4.2.5.1763\'
UniPath='H:\sistema\uni-0.99.80.1270\'
UniMobilePath='H:\sistema\unim-0.99.80.1270\'
 
My aplications are in:
h:\sistema\empresa1\client
h:\sistema\empresa2\client
...
 
Is there any way to just get the folder version?
example
[extVersion] = ext-4.2.5.1763
[uniVersion] = uni-0.99.80.1270
[unimVersion] = unim-0.99.80.1270
 
In manual you placed:
 
Some Examples:
ExtRoot = "[ext]" ExtJS Files are in <Runtime Package InstallFolder>\FMSoft
\Framework\uniGUI/ext-x.y.z.build\ (*Recommended method)
ExtRoot = ".\[ext]" ExtJS Files are in <server root>\ext-x.y.z.build\
ExtRoot = "C:\ExtJS\[ext]" ExtJS Files are in C:\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\[ext]" ExtJS Files are in <server root>\ExtJS\ext-x.y.z.build\
ExtRoot = ".\ExtJS\ext" ExtJS Files are in <server root>\ExtJS\ext\

 

I not understand why my does not work, because as the party who left bold indicates that only picks up the folder version.

 
I thought of something like:

ExtRoot = C:\myfolder\[ext] = C:\myfolder\ext-x.y.z.build\ = C:\myfolder\ext-4.2.5.1763\'


  • 0
Delphi Berlin
uniGui 1.0.0.1410
Windows Server 2012 64bit IIS

#9 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 23 February 2016 - 05:21 PM

Where do you assign these values? At design time?
  • 0

#10 Fenix

Fenix

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 258 posts
  • LocationBrazil

Posted 23 February 2016 - 05:49 PM

In runtime:

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
ServerConfig: TInifile;
begin
serverConfig := TInifile.create(gsAppPath + 'unigui.ini');
port := serverConfig.readinteger('AppWeb', 'ServerPort', 1980);
extroot := serverConfig.readstring('AppWeb', 'ExtjsPath', '');
uniroot := serverConfig.readstring('AppWeb', 'UniPath', '');
FreeAndNil(serverConfig);
end;

for now let this way:

procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject);
var
 ServerConfig: TInifile;
begin
 serverConfig := TInifile.create(gsAppPath + 'unigui.ini');
 extroot := serverConfig.readstring('AppWeb', 'ExtjsPath', 'c:\myFolder\');
 uniroot := serverConfig.readstring('AppWeb', 'UniPath', 'c:\myFolder\');
 uniMobileroot := serverConfig.readstring('AppWeb', 'UniMobilePath', 'c:\myFolder\');
 if Extroot <> '[ext]\' then
    extroot := extroot + 'ext-'+ ExtJSVersion + '\';
 if uniroot <> '[uni]\' then
    uniroot := uniroot + 'uni-'+ UniguiVersion + '\';
 if uniMobileroot <> '[unim]\' then
    uniMobileroot := uniMobileroot + 'unim-'+ UniguiVersion + '\';
 FreeAndNil(serverConfig); 
end;

  • 0
Delphi Berlin
uniGui 1.0.0.1410
Windows Server 2012 64bit IIS

#11 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9829 posts

Posted 23 February 2016 - 06:20 PM

I fixed the issue.

 

Thanks


  • 0

#12 Fenix

Fenix

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 258 posts
  • LocationBrazil

Posted 23 February 2016 - 07:30 PM

Thanks  ;)


  • 0
Delphi Berlin
uniGui 1.0.0.1410
Windows Server 2012 64bit IIS




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users