1. Luis Duran
  2. PowerServer
  3. Tuesday, 6 February 2024 22:08 PM UTC

I want to know if I can change the name of the app after been deployed? We have different environments for testing, but is unacceptable under our standard to create a new power server project for each DB and redeploy. I need to use the same deployment and point to a different DB.

I was able to do this (create a new site and make it point to a different DB), but the app have the same name and is generating the same shortcut with a (2) at the end in the client side. So, what I want is to customize the name of the shortcut or the app name in the server after is deployed.

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 7 February 2024 18:40 PM UTC
  2. PowerServer
  3. # 1

If I understand correctly what you want to do, all you need to do is rename the folder on the Web server rather than the app itself or any of the contents of the folders.  For example...

I deploy the demo app to folder called "salesdemo_local" on the Web server.  Then I simply did copy n' paste of the folder and renamed it "salesdemo_test". 

Here you can see under the second folder renamed to "salesdemo_test" the application .EXE is still the same salesdemo_local.exe as the other folder on the Web server. 

Then I launch each of the subfolders with corresponding URL.  For example, http://localhost/salesdemo_local and http://localhsot_salesdemo_test. It creates two shortcuts automatically, and each shortcut points to the right subfolder. 

You could do exact same thing even on different servers, but I just illustrate this example on same server. 

Comment
  1. Luis Duran
  2. Wednesday, 7 February 2024 20:05 PM UTC
exactly this is what I did, but my question was if there is any way to rename the app, so the second icon is not name it as salesdemo_local(2) but salesdemo_test.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 7 February 2024 21:15 PM UTC
The shortcut name is not dictated by the app.exe name. It's takes the value you enter for the "shortcut name" field. We would need to do an enhancement to save this value to the apprun.json file so that you can modify the shortcut name without having to create a new package. Alternatively or at least temporarily, what you could do is disable the creation of the shortcut and only access the app through URLs. The URLs can be used every time to start the app, even the local cached version on user's PC.
  1. Helpful
There are no comments made yet.
Luis Duran Accepted Answer Pending Moderation
  1. Wednesday, 7 February 2024 17:42 PM UTC
  2. PowerServer
  3. # 2

I just found out that if I replace the appconfig.json.zip from another Power Server project with a different appname it will rename the app. So, just to simplified, is there any way to made changes to this file after is deployed? I see that the file is encrypt and I see that we can edit this file using CustomizeDeploy.dll. But I haven't found any doc saying it is possible to change the name of the app.  

Comment
There are no comments made yet.
Luis Duran Accepted Answer Pending Moderation
  1. Wednesday, 7 February 2024 00:27 AM UTC
  2. PowerServer
  3. # 3

We have 14 environments for testing, this is to test different project (changes to the same application pointing to different release) at different time. Not all the project go to prod at the same time and they start at different period of time. So, currently in Appeon 2020 we created a package and we deploy that package to what ever environment we need. We don't recompile the application to deploy the package to a different environment unless is a code change or a rebase from PROD when a release is move to that environment. So, now in 2022 I'm trying to setup the same thing, but my problem is that after I created the package to install the API, WEB and runner in the server, I can install that package in different sites to point to different DB as need, but when the user click in the link the app name is the same even when is pointing to a different environment. So I need my app name to contain the environment name. Your solution does not work to me, because it would be the same code always pointing to different DB. But when I new project is compile and is part of a complete different release I will be stuck with the same issue.

Comment
  1. Luis Duran
  2. Wednesday, 7 February 2024 15:23 PM UTC
No, I need the 14 different shortcuts, each one for different environments.
  1. Helpful
  1. Luis Duran
  2. Wednesday, 7 February 2024 15:25 PM UTC
This post was to reply to Mike S suggestion.
  1. Helpful
  1. mike S
  2. Wednesday, 7 February 2024 17:16 PM UTC
' the app name is the same "

you mean the users' desktop shortcut's name? that is what you want to be editable after the install is built?



"14 environments for testing"

that is a lot







  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Tuesday, 6 February 2024 23:33 PM UTC
  2. PowerServer
  3. # 4

"unacceptable under our standard to create a new power server project for each DB and redeploy"

 

If you are testing the PB part of the code, then you should setup a new project so you can test the new code.  But i think you are wanting to just test out different databases?

 

if you are just testing some database changes, then why not just setup your login to 'repoint' to the database you want it to use.  You use different db caches for this (the cache names can be created/setup at runtime via the webapis).  Same exact concept as a SAAS deployment where each customer has their own database.  

 

the big difference is that instead of deciding which icon to click, the user clicks which "database profile" to use after clicking the single icon.  We name our testing databases "TEST" so that users know they are connecting to a test database, and then put up a messagebox that says 'you logged into test'.

 

 

 

 

 

 

Comment
There are no comments made yet.
Luis Duran Accepted Answer Pending Moderation
  1. Tuesday, 6 February 2024 22:25 PM UTC
  2. PowerServer
  3. # 5

I know that Chris, that's how I was able to make the new site and make it point to a different DB. But what now I have two sites

 https://Server address/ic_i26/

https://Server address/ic_i20/

But both generated the shortcut ic_m20 in the client side. even that they are pointing to a different DB, and is because the app name is the same.

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 7 February 2024 17:25 PM UTC
Is this because the various testing environments are not on separate network segments?
  1. Helpful
There are no comments made yet.
Luis Duran Accepted Answer Pending Moderation
  1. Tuesday, 6 February 2024 22:13 PM UTC
  2. PowerServer
  3. # 6

2022 R2

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 February 2024 22:13 PM UTC
  2. PowerServer
  3. # 7

Hi Luis;

  FWIW: That is one of the uses of the CacheName parameter in the SQLCA DBParm field is for.

  FYI: https://docs.appeon.com/pb2022r3/connection_reference/CacheName.html

HTH

Regards ..> Chris

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 February 2024 22:11 PM UTC
  2. PowerServer
  3. # 8

What version of PowerServer?

Comment
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.