1. Art Lenz
  2. PowerServer
  3. Tuesday, 9 May 2023 22:22 PM UTC

I have an IIS web server with a working PowerServer application on it. How do I add a second application to the same server?

The Applications.json file implies a structure for more than one application on the same server, but I don’t know the details of how to do it.

Is this possible?

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 May 2023 22:48 PM UTC
  2. PowerServer
  3. # 1

Hi Art,

You can create a second IIS site bound to a different port, using a different physical path, and place the new Web API there. Using the same Web API for multiple applications is not recommended.

Regards,
Francisco

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 May 2023 22:49 PM UTC
  2. PowerServer
  3. # 2

Hi Art;

  You would first create a new Website under a new root folder (ie: C:/Inetpub/PSxxxx). Then bind it to the new Port ID of your new PS instance. Then package your new PS instance from the PB IDE's "SnapDevelop" environment. From there, copy that PS deployment to the route folder of the new Website. 

   Repeat the above procedure for further PS new instance App deployments.   HTH

Regards ... Chris 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 May 2023 19:13 PM UTC
  2. PowerServer
  3. # 3

Hi Art,

The way I suggest to do this is...

1. On the default IIS Website (port 80) deploy the client apps. When I say client app I mean the PB .EXE portion (not the C# Web APIs).  Each client app would be in a subfolder of this default IIS Website.

2. Then create another IIS Website (must be different port than 80, for example 5099) that will hose the multiple Web APIs.  Again, just like the client app, each Web API needs to be in a distinct subfolder of this Website.  Here are instructions how to do this: https://docs.appeon.com/ps2022/Deploying_multiple_Web_APIs_to_IIS.html

Best regards,
Armeen

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 31 October 2024 11:58 AM UTC
  2. PowerServer
  3. # 4

Follow up question on this topic.

I have deployed two applications on the same server using the method 2 described in docs. I have both Apps deployed to the main site and both web APIs to a second site on a different port. All works.

Looking at the web config on the route of the main web site it contains a line for one  of the applications:

<aspNetCore processPath=".\Othello_cloud_API\ServerAPIs.exe" stdoutLogEnabled="false" stdoutLogFile=".\Othello_cloud_API\logs\stdout" hostingModel="inprocess" />

Everything works and my other application is fine, I just wanted to be clear about this line and why we do not have a line for both applications?

 

Many thanks

David

Comment
  1. Logan Liu @Appeon
  2. Friday, 1 November 2024 07:58 AM UTC
Hi David,

If you already have the PowerServer Web API deployed on the second site, you don't need to use the web.config file under your main site to start the ServerAPIs.EXE. You can uncheck the web.config option so that the PowerServer project will not generate it. For more details, refer to this link: https://docs.appeon.com/ps2022r3/Is_web.config_mandatory.html. To learn more about the web.config file, please refer to this: https://docs.appeon.com/ps2022r3/web.config.html

Regards, Logan
  1. Helpful 2
  1. David Peace (Powersoft)
  2. Tuesday, 5 November 2024 11:49 AM UTC
Hi Logan

Thanks for the confirmation, as you say it works.

I'm using the PowerServer console, which only sees one App on the server, having dug into the code it's not designed to work with multiple apps on the server and that was confusing me.

I now understand. Thanks
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.