Post

1 follower Follow
0
Avatar

how i can deploy two web applications in one Apprenda application?

I try do this with publicinterfaces folder, but I've the next error: "A directory with the name 'publicinterfaces' cannot exist at the root of the archive. Only folders with the following names are allowed at the root level: interfaces, services, persistence", i need to use multitenant

Thanks in advance

Alejandro Cortes

Please sign in to leave a comment.

8 comments

0
Avatar

Hi Alejandro, 

You can deploy multiple web applications as part of the same Apprenda application by including the different web applications as different folders inside the interfaces folder. One of them should be called root which will be the root of the website and the other should be called whatever name you want it accessible as for example:

You may have two web applications, one for the main app and the other one for administrative purposes. You should include both of these web applications inside of your interfaces folder as root and as admin. When deployed by Apprenda you will be able to reach them at http://appalias.cloud-url/ and http://appalias.cloud-url/admin/

Hope this helps.

Cheers,

Abe 

Abraham Sultan 0 votes
0
Avatar

Hi Abraham,

Thanks for the response, another question is if i need that the second application (admin) be public i mean if we want that the first application require username and password and the second app doesnt, what i need to do?

Best regards

Alejandro Cortes 0 votes
0
Avatar

Take a look at the FAQ Manager example that is shipped with the platform as it is a very similar use case to the one that you want.

Regards,

Abe 

Abraham Sultan 0 votes
0
Avatar

Hi Again, the Apprenda Archive Builder, build an archive with 2 interfaces folders, like the example that mention before, but at the moment of try to upload the archive into apprenda, get an error "publicinterfaces folder name is not permitted, only interfaces, persistance ...." any idea of this problem?

Thanks in advance

Best Regards

Alex

Alejandro Cortes 0 votes
0
Avatar

Hi Alex,

By default the Apprenda platform does not allow for public interfaces to be uploaded. If you want to enable this functionality you need to add a Custom Platform Registry for it.

The setting name is: Apprenda.Features.PublicUiEnabled and the value should be set to True

The following link has information on how to add a customer setting: http://docs.apprenda.com/current/SOC/Managing-Registry

Let me know if you have any other questions.

Regards,

Erik L

Erik Lustgarten 0 votes
0
Avatar

Thank you so much Erik, it was that i needed, now I can publish public interfaces without troubles

Regards

Alex 

Alejandro Cortes 0 votes