Azure Web Apps directly from Repo and not requiring to setting up the server? - django

So we can deploy Java apps directly from your GitHub account ? - no need to setup server with Java setup etc - the azure web app will recognize the GitHub repo as a Java app (like springboot) and deploy the code and setup Java + SpringBoot automatically.
Please correct me if my understanding is incorrect. I am only interested in deploying a springboot / django app if I don't need to take care of the actual intricacies of setting up a server.

Related

Deploy Python apps to Azure App Service on Windows Server

I can't find any proper guideline how to deploy a Django web application on Windows Server, almost all tutorials talk about Linux. Can someone explain or give a link?
I now we need an IIS. What about DNS and AD, or any other services? I would like to know the relationship among IIS, DNS and AD, or any other services.
One simple way to deploy a Python app to Windows app service is to use the Devops Projects
Step 1: Create a Python Project
Step 2: Choose an application framework as Django
Step 3: Select the Windows Web App
Step 4: Fill the rest of the settings.
Once the project is created you can pass the custom code and do the deployment from the Azure Devops pipelines.
EDIT
if you want to deploy the app on VM follow the steps as mentioned here.

WSO2 P.PaaS : Accessing the AS and other WSO2 products

So I have got WSO2 P.PaaS installed and running. I want to deploy .war file to the Application Server. It seems the AS on P.PaaS does not accept .war file; but the stand-alone one does. See here. Also, I want to use the WSO2 products deployed into the PaaS. I am not sure what URL or port I should use. Is there a tutorial that I can use to experiment?
Sorry for the brevity, but, I am new to WSO2.
What PPaaS version you have installed, 4.0.0 or from current master branch which is 4.1.0 milestone 1 version?
Here is the quick start guide Quick start guide .
You can access the management console as https://STRATOS_DOMAIN:9443/console.
Assuming you are using PP 4.0.0 version,
Log into management console
Go to cartridges page. There you can find the available cartridges, you should find Application Server as a cartridge.
Click on AS cartridge in order to subscribe for it. At subscribing process you would be asked a GIT repository URL.
After you subscribe, PP will clone what is in your GIT repository url in to Application server. So if you provide a url which has your web application, those application would be automatically deployed into the Application server. Here is a sample GIT repository , you can include your web apps under "webapps" folder.
There after if you modify your web apps (say web app version 2) and commit the changes to your repository, Stratos/PP automatically update Application server with the new web apps.
Since you have already deployed PP, you can have a loot at this screencast to see how you can deploy a web app

Grails App with Multi Tenant Single DB plugin URL implementation in Cloudfoundry

I am currently creating a web app using Grails implementing Multi Tenant Single DB plugin. The plugin allows me to have multiple tenants on a single db using a tenantID to differentiate between tenants. The plugin detects witch tenant will deal the current request that is made on my app by resolving using different domains/subdomains for each tenant.
For example:
Tenant 1 = companyA.myapp.com
Tenant 2 = companyB.myapp.com
On my local machine running Grails development mode I was able to implement the different hosts by changing my /etc/hosts and each tenant would have their own subdomain.
I am currently interested in using cloud foundry as my cloud platform but when I deploy my app to cloud foundry it is already using my app name as the subdomain for cloud foundry.
For example:
- myapp.cloudfoundry.com
Is it possible to change or control the domain name resolver in
cloud foundry?
Does anybody know how to handle multi-tenant subdomains as explained above in cloud foundry? Probably provide the steps in implementing this using cloud foundry?
What is the best approach to implement this using cloud foundry?
My App is using Grails 2.0.4 and Multi Tenant Single DB plugin 0.8.2.
Thanks
Unfortunately the current beta version CloudFoundry does not allow modification of the cloudfoundry subdomain. The plan is to have the GA towards the end of this year with a private preview of the version of the site available sooner in the fall. At that time you could be able to customize the subdomain.
Therefore you might need to change a little in your TenantResolver to only check the subdomain that varies.
To implement your requirement, did you try installing the grails cf plugin? If not you can start from here.
If you are using cli, installing the plugin just needs command in your project workspace:
grails install-plugin cloud-foundry
When your app is ready for deployment, push it to cloudfoundry:
grails cf-push
Note that you will have to have your cf credentials configured in the grails config file.
After that you can map multiple URLs you want using:
grails cf-map user1.yourapp.cloudfoundry.com
If you have already known about vmc which is the client command line interface for cf, you can see the urls mapped with your app by
vmc apps
If not you can refer to the installation guide to start if you would like to do that.
If you are using STS/eclipse, things will be even easier. First you need to have grails-support extension as well as the cloud foundry integration installed. For detailed docs of the cf integration please refer here.
After your app is deployed, right click the project and choose "Grails Tools" -> "Open Grails Command Prompt". This will enable you to have same grails cf plugin commands as the CLI does.
Hope this can help your move forward in the cloudfoundry world. Let me know if you have more questions.
Thanks,
William

Web Service on Netbeans

I have created a Web Service in Net Beans 6.9 and deploy it locally. And I am using it via a java SE application by adding Web Service client in this application. How to obtain the link of the Web Serice so that it can be used from anywhere ?
2) From where to obtain WSDL file of Web Service ?
3) How to host a Web Service on the internet ?
Thank a ton in advance..!!!
You could create a new project of type web application in Netbeans.
In the web application, you will then create a web service (NOT a web service client).
For publishing and testing the web application, you will have to deploy it to a web server (e.g. GlassFish).
After publishing the web application, the WSDL file will be typically located at: http://localhost:<port>/<your web app>/<your service>?wsdl
For GlassFish, the default port is 8080.
If your current Netbeans installation doesn't support web projects or you don't have GlassFish installed, I suggest you download and install the latest version of Netbeans with Java EE support (bundled Apache Tomcat and GlassFish server in the same setup).
http://netbeans.org/downloads/index.html
Hosting SOAP web services on the internet at large has not been terribly successful. For example Google had SOAP based web services initially, and they switched to REST based services in the end. You may want to reconsider and deploy a REST based interface. If the bulk of your code is not embedded in the web service, then you should not have that difficult of a time switching the interface.
To deploy a SOAP or a REST web service, you would need to deploy a 'full' Java EE container (e.g. Glassfissh or JBoss) on a machine with access to the internet. You might virtual hosting e.g. Westhost, Amazon, or there are turnkey solutions like Heroku (note: I'm not endorsing any of the companies listed here; they're just examples). If you just want to deploy a REST based service, any web container will do e.g. Tomcat or Jetty. In addition to services mentioned above you could probably host a rest web service on any service that will let you upload a war file.

Apache Axis2 Webservice in regular shared hosting service

I developed a webservice in java with Axis2, and now I need to put it online.
In order to do it I signed a shared hosting service, but as I am not familiar with this kind o stuff, I don´t really know how to do it.
It´s a regular shared hosting service, is runs on Apache Tomcat, but I only have access to my home folder, public_html this kinda stuff.
Can I run my webservice by deploying it and putting it into public_html?
Do I have to deploy it in some way as to add Axis2 files to it, to make it work?
Any help will be much appreciated,
Lucas
You need to find a way to deploy .war files. In this case you have to use the Axis2 .war distribution and deploy it in your service hosting environment.
Normally you are given public_html folders in the hosting environments created by appche httpd where you can only deploy html pages. You need to clarify this with your service hosting provider.
You can use WSO2 Stratos live[1] for this kind of purposes. This article[2] describes how to deploy the axis2.war in stratos live.
In fact WSO2 application server[3] is specially written to deploy axis2 artifacts. So even without deploying axis2.war you can directly upload your service as well.
[1] https://stratoslive.wso2.com/home/index.html
[2] http://wso2.org/library/knowledge-base/2011/08/run-apache-axis2-webapp-wso2-cloud-0
[3] https://appserver.stratoslive.wso2.com/home/index.html