Where do I place the deployment files for asp net core application - deployment

I have a self contained asp net core web application and I dont know where in the file system I need to place the files. I will be using the Kestrel web server without a reverse proxy as it will be behind the AWS application load balancer. I will use amazon linux2 AMI

It is OK to place it anywhere as long as the hosting user has sufficient permissions to the folder. Simply create a systemd service configuration and it would work properly.
Consider placing it in /usr/share as where the applications commonly are.

Related

Can API Platform be deployed in a LAMP env' on shared hosting, like Hostgator?

I currently have a reseller account through Hostgator and am wondering if API Platform can be deployed there. The documentation states "The server part of API Platform is basically a standard Symfony application, that you can also easily deploy on your own servers." but it's not clear to me whether or not the server part (e.g., /api) can be broken out of Docker and installed in a standard LAMP lamp env. It seems feasible but I'm not certain it would work like that.
Any guidance will be appreciated. Thanks in advance!
Yes it can! The Docker integration is 100% optional.
Because the content of this directory is actually just the Symfony Skeleton + the configuration for the API Platform bundle, you can just upload the content of the api/ directory on any LAMP server. Set the appropriate environment variables (for instance the RDBMS), and you’re done.

Develop a Service Fabric Web Application without redeploying after each file change

I have stateless .net core 2 Fabric Service Web Application creating using one of the templates that comes with Service Fabric SDK. It is a real pain to develop since I have to do a full deploy before I can see any changes to code/html/script. In my case that operation takes more than 5 minutes.
I have looked at this article that states how it can be done by running the web app from the commandline.
That article is based on Net Core RC2. Does anyone has an updated example on how to do this?
https://dzone.com/articles/aspnet-core-with-kestrel-and-service-fabric
Together with Azure Developer Support i found a solution to speed up the development process
I Fabric Explorer you need to find the node where you Web Application is running. I my case that is _Node_0
By SF SDK design, local SF published file is under C:\SfDevCluster\Data_App\ this folder. In my environment, the website file path is C:\SfDevCluster\Data_App_Node_0\Application1Type_App1\Web1Pkg.Code.1.0.0\wwwroot\lib\bootstrap\dist
So you can also find your HTML, CSS, JS and other static resources under below path:
C:\SfDevCluster\Data_App[node_id][application_type_and_instance_name][service_type_and_version]\
You can just modify the files in this folder, then the change will immediately apply to your local test web browser. Please notice if your service is hosted by micro-service running in several nodes, you may need to modify all nodes files because load balancer may access any folder files randomly.

What directory to publish Asp.NET Core application on desktop to?

I come from the desktop application world (WPF, WinForms), where the convention is to deploy your exe to \Program Files[ (x86)]\CompanyName\AppName\ directory, and store all the data in \Program Data\CompanyName\AppName\ directory.
What's the corresponding convention for deploying Asp.NET Core web services on a desktop (not a server) PC? Program Files directory doesn't seem like a good idea, because it requires admin credentials for writing, a problem you hit the moment you try to publish the app. On the other hand, while Program Data doesn't have the permission problem, it just doesn't feel right, given there is no corresponding Program Files location.
I've also seen C:\intepub\wwwroot\web-service-name used, when IIS was involved. Is that the way to go? I'm guessing it makes sense when running Asp.Net Core app in Kestrel behind IIS as reverse proxy, but what if I were to host my app inside a Windows Service instead?
There is a lot of enduser as well as enterprise apps deployed as windows services with embedded web applications (using Apache, tomcat..etc) Under Program Files, Ex: HPE server admin/config tools.
So for Kestrel APP, I would deploy bin in Program Files and write logs,DB,etc under Program Data. it will works without permission issues since dotnet binary has the needed perms.

How I can deploy my GWT application on www

I created my first Java EE application (GWT + Hibernate). I want deploy my application on a Tomcat web server.
Could you give me a step by step tutorial?
You can start with Google App Engine + GWT tutorial if you are trying out deploying into Google Cloud - https://developers.google.com/web-toolkit/doc/latest/tutorial/appengine
This question is massive so I will try to bring it down to some steps that need some research to implement.
1st. You created an application using GWT and Hibernate. That means that you need some kind of a web server that understands java and can re-write the logic from java to javascript (for the clientside), and also connect to the database on the serverside and retrieve the data for the client.
This web server is tomcat so what you need is:
A computer that will work as a server. This could be your own machine or some server you can buy as a hosting solution. Buying something like this requires research and effort on your part and cannot be explained here.
A version of Tomcat or Resin or any other web server that understands java
A domain name. These can be bought from sites like this one, but there are some free ones around the web. They require static ips that is you cannot use them from a home line that changes ips. Even without a domain name you can host your site on the server but you need to access it by writing the machine's ip instead. - optional - A temporary solution would be to use some kind of dynamic dns service on your router.
After having set up tomcat (you might want to give port 80 to tomcat) and the server you can host your application by uploading the war file. You can make a war file from gwt by following the instructions here
To upload the war file you can use the tomcat manager interface, or you can connect to the server and place it manually in the folder used for the web applications.
I know that each step propably needs as much if not more explanation by I hope I cleared the area a little bit here.

howtodeploy dotnetnuke webapplication in webserver

I created one dotnetnuke web application and also i worked with the database aslo, now i want to deploy in my webserver as a portal. How to deploy the dotnetnuke web application in my web server, I want the steps how to deploy the dnn application..
It depends because there are numerous scenarios.
A. Simple solution is to just copy DNN and its database to web server, as you can do with any other asp.net application. This is good option if you need to move all you have locally.
Copy file system with local dnn to web server
Restore dnn database to database server accessible to web server
Update PortalAlias table with webserver domain name
Update connection string(s) in web.confg to new database location.
(http://www.dotnetnuke.com/tabid/825/EntryId/1293/Default.aspx)
B. More sophisticate options is If your app is made as one or more DNN modules. Than you need to create DNN module deployment package (ZIP file with DNN manifest files, acsx files, dlls, resources, SQL install scripts, etc…). Easy start is Create Module Package option in Module Definitions. When you have correct and complete module package you can install it to other DNN host installations.
adefwebserver.com/DotNetNukeHELP/DNN_PackageModule/
If you will be deploying to a web "farm" (more than one server), this documentation from DNN can help http://www.dotnetnuke.com/LinkClick.aspx?fileticket=uBK3uGIYYXg%3D&tabid=478&mid=857