Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Help with deployment
Fri, Jun 15 2018 10:19 AMPermanent Link

DidierL

I need help to deploy my first EWB application + first EDB database.

I've declared 2 sessions in ElevateDB Manager, one for EWB app, one for a EWB Delphi module.

Here is my file structure, witch I have packed into a setup:
CheckApp
 \ DB  
     (database files)
 \ www  
     \ images
     \ check.html
     \ Check.js
 EDBConfig.xxx
 ewbsrvr.exe
 libeay32.dll
 ssleay32.dll
 checkmodule.dll

I've made EWBSRVR.exe configuration locally
- LocalConfigPath = .
- LocalTempTablesPath = "."
- Port 8822
I've tested successfully the connection to my database, and populated datasets.
Then I've packed all this and copy on my remote server.

Alas, the webserver configuration is not kept.
I have to reconfigure it manually on the new machine, but I'm stuck with
- "Session name "XXX" already exists" messages.

Also, trying to access the application via <localhost>:8822/check.html
- "Resource not found"

Is there a way to save a EWBSRVR config file?
Is there a better way to perform all this, as I'd rather a scriptable one for my clients to deal with this.

Thanks
Mon, Jun 18 2018 9:29 AMPermanent Link

DidierL

Please, can I can have some directions with my problem?
Mon, Jun 18 2018 10:54 AMPermanent Link

Matthew Jones

DidierL wrote:

> EDBConfig.xxx

I can't help a lot because I don't use the EWB server, but I would be looking at the EDBConfig.xxx files as they are typically containing paths and the like which probably already has your session in, and you need to modify the session rather than create a new one.

I think the server config is in one of the system data paths isn't it? Quite a lot of info at https://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Configuring_Server but you've probably seen it.

--

Matthew Jones
Mon, Jun 18 2018 11:35 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi DidierL,

Did you check in task manager if you have multiple copies of ewb web
server running? If so close all and start from scratch, also start
ewbsrvr.exe and check all properties are set/correct (eg port number).

Regards,
Hüseyin

Den 18-06-2018 kl. 15:29 skrev DidierL:
> Please, can I can have some directions with my problem?
>
Mon, Jun 18 2018 2:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Didier,

<< Here is my file structure, witch I have packed into a setup: >>

That looks good...

<< I've made EWBSRVR.exe configuration locally
- LocalConfigPath = .
- LocalTempTablesPath = "."
- Port 8822 >>

You don't want to use relative path names for the configuration path or the temp tables path.  If you're worried about drive letters, then just use a path like '\MyApplication\DB'.

<< Alas, the webserver configuration is not kept.
I have to reconfigure it manually on the new machine, but I'm stuck with
- "Session name "XXX" already exists" messages. >>

That is most likely coming from your EWB Web Server module, and is most likely due to you not setting the TEDBSession.AutoSessionName property to True:

https://www.elevatesoft.com/manual?action=viewcomp&id=edb2&product=rsdelphiwin32&version=10T&comp=TEDBSession

<< Also, trying to access the application via <localhost>:8822/check.html
- "Resource not found" >>

Make sure that your Content Folder for the EWB Web Server

<< Is there a way to save a EWBSRVR config file?
Is there a better way to perform all this, as I'd rather a scriptable one for my clients to deal with this. >>

Yes, you can do this.  The EWB Web Server configuration file is simply an .ini file, and you can find out more information on the settings here:

https://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Configuring_Server

under "Configuration Reference" (towards the bottom).

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jun 20 2018 4:36 PMPermanent Link

DidierL

Thank you for your help Tim,
EWBSRVR.ini and AutoSession solved my main issues.
Image