1. mike S
  2. PowerServer
  3. Monday, 7 August 2023 21:01 PM UTC

it shows both url in the deploy screen - but you can't edit it to make the one different than the other.  you can enter in a url, but it is for BOTH.   you apparently can not have one set different than the other.

 

I know it now has the ability to specify at runtime the weburl (which requires coding), which is great, but i expect to be able to have it work the old way as well.  and it if does not, it should at least be well documented that it no longer has that capability.

 

Is this now something that can ONLY be specified in the code?  

applicationname.SetPowerServerURL ( string asurl )

 

 

I already submitted a bug report on this.

mike S Accepted Answer Pending Moderation
  1. Wednesday, 9 August 2023 18:05 PM UTC
  2. PowerServer
  3. # 1

"If you want to deploy to your local IIS then you would use the "External" radio button and you can specify the Web API URL as you wish."

this is not the case.

"web api site url" is not editable

 

it is ONLY editable if you deploy to a folder instead of a 'target server' - and then you have to manually copy the application. 

  

web api url is not editable here:

 

 

web api site url is editable (the cursor is in the field)

 

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 10 August 2023 17:17 PM UTC
The IIS Web Deploy feature is for a single IIS Website so that is why not editable this deployment option is only for when you are hosting the client app and Web API on same Website. If you want to separate out the client app and Web API then you use the External Folder option.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 8 August 2023 18:07 PM UTC
  2. PowerServer
  3. # 2

The configuration process has been revamped in PowerServer 2022 R2 to meet various needs of most customers better.  For static mapping of the URL you set it in the JSON file (not in the IDE).  We made this change so it can be edited even after the project is compiled.  For dynamic mapping of the URL, you can set it in PowerScript.  

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Monday, 7 August 2023 21:09 PM UTC
  2. PowerServer
  3. # 3

Hi Mike,

You can now also change the Web API URL an application points to by editing the application's apprun.json file.

Regards,
Francisco

Comment
  1. mike S
  2. Tuesday, 8 August 2023 18:50 PM UTC
"Web API URL is still in the 2022 R2 project"

it is not editable in the project. it forces you to use the same url as the application.



  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 8 August 2023 19:15 PM UTC
That is only for when running within the IDE. When you run within the IDE the Web API is the same URL as the app it is all in Kestrel. If you want to deploy to your local IIS then you would use the "External" radio button and you can specify the Web API URL as you wish.
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Tuesday, 8 August 2023 20:25 PM UTC
Armeen is correct. ;-)
  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.