Migrating Aptify Web to Azure App Service
To begin with the migration of Aptify Web to Azure App Service, follow the below instructions:
Log into the on-premises environment where Aptify Web is installed.
Take a backup of AptifyServicesAPI and Aptify folders hosted on IIS. Make sure, the two folders are zipped together in the same file.
Go to Kudu services and click Tools->Zip Push Deploy, you will see the folder structure App_Data, AptifyServicesAPI and Aptify.
Delete all the folders and drag-and-drop the zipped backup of Aptify Web site for the app service.
Once, the site contents have been uploaded on Kudu, under the AptifyServicesAPI folder, open the web.config file and make the following changes:
After the end of <configSections>, add the following to enable exception logging in the APTIFY database (ERRORLOG table).
<exceptionManagement mode="on" defaultseverity="0"> <publisher mode="on" assembly="AptifyExceptionManagement" type="Aptify.Framework.ExceptionManagement.DatabasePublisher"/> </exceptionManagement>
Update the value of the key, “Aptify.Framework.UploadsPath“, to the path of the “Uploads” folder on Kudu.
Update the values of “Aptify.Framework.LoginServices.AptifyLogin.Server“, “Aptify.Framework.LoginServices.AptifyLogin.SQLLogin“, “Aptify.Framework.LoginServices.AptifyLogin.Password“ and “Aptify.Framework.LoginServices.AptifyLogin.Trusted“, according to the SQL Managed Instance on Azure.
Update the value of the key, “Aptify.Framework.ObjectRepository.AptifyObjectRepository.DefaultObjectCachePath“, to the path of the site contents “bin“ folder on Kudu.
Update the value of the following keys by prefixing the URL of the azure app service in place of the local server site URL, for example, “https://azudevapt100002.com/UI/Index.html“ would become “https://testaptify.azurewebsites.net/UI/Index.html “
RedirectLocation
AuthenticatedRedirectLocation
PasswordResetURL
Aptify.Services.CORS.AllowedDomains
Aptify.FrameWork.Payment.BluePay.RemoteUrl
Save and close the file.
Open the Aptify.Framework.Configuration.External.js file present in the location: - “Aptify/script/Aptify/configuration” folder and make appropriate changes to the following properties as per the azure app service.
Aptify.framework.configuration.signalrUrl
Aptify.framework.configuration.servicesUrl
Aptify.framework.configuration.reportsUrl
Aptify.framework.configuration.ssrsReportsUrl
Run the application in the following manner,
Run the AptifyServicesAPI app service URL first
Then, run the Aptify app service URL once the services are up