I have an O-jet application and need to deploy it to Nginx.
I have installed Nginx in windows and have it working successfully.
From my understanding, I just need to modify the nginx.conf file and re-load the config file, the application will be available in the specified url.
How to change the nginx.conf since I want to deploy it to specified http://host:port?
Simply copy your OJET project into nginx's web root.
OJET is a JS toolkit, not a web application, so usually, your project files are static content.
Related
Follow up to this question:
Application Insights added ConnectedService.json file to my project, what does this do?
When I create a deployment package, via "Publish..." option, the package also include the following folder and files:
Service References\Application Insights\ConnectedService.json
I do not want to deploy something that is not required at runtime. Do I have to include the folder and file in my production server deployment?
No. Those files are only used by visual studio for its information, to know what services have been added and give you links back to them inside VS. None of that needs to be deployed. those files can all be set to do not copy/etc.
First of I am new to Aurelia and has just completed a real world project on my development server which I like to run concurrently with WordPress which needs PHP. Back in the days with angular 1.x I used to gulp all the angular dependencies and scripts into a single file and transfer it to the server, which I thought would be the case with Aurelia too but looks like it is more complex in this matter. So please if any one has come around to this problem, any help would be appericated like how can I port Aurelia project to apache server without serving it through node. Or is it possible to run node and apache on same server.
You don't need to run Node to serve your application. Any web server - such as Apache - will do. You only need to bundle your application and upload the files to your server.
If your project was created using the CLI, the application is bundled automatically every time you run au run (or au build), so you can simply upload the scripts directory and the index.html file. This is the minimum; you may need to upload also CSS, images or fonts, depending on your app.
If your project is based on one of the skeletons, you can bundle your app by running gulp bundle, then upload the distdirectory, the jspm_packages directory, the config.js file and the index.html file, plus anny other asset (CSS, images, etc.) you may need.
I have an ASP.NET WebForms application which I would like to publish to a Web Deploy package and deploy using the deploy.cmd script generated as part of the Web Deploy package. This basically works fine but I have one problem.
My application generates image files which are stored in a temporary directory as part of the web site (basically a subdirectory of the IIS site's physical location called temp). However, whenever I deploy my site using the deploy.cmd script, this directoty is deleted. Instead, I would like the deploy script to make sure the directory is present and that the IIS user has access to it. Is this possible to do with Web Deploy out of the box?
i have a ClickOnce application (online only) which is deployed on a network share. People can run the application by creating a shortcut to i:\ApplicationDirectory\ApplicationName.application
where i is the letter of the drive of the networkshare.
I want to start the application over HTTP. For this, I need the .Application file to be accessible through my webserver. However I am unable to select the ApplicationDirectory as a virtual directory for IIS. I tried copying the .Application file to a virtual IIS path, but this makes the deployment corrupt (i also updated application_files reference in the .Application file). Is there a(nother) way to start a ClickOnce application, deployed on a network share, over HTTP?
First find your ClickonceKey.pfx, in other words the key used to sign assemblies.
Then find mage.exe, the utility for signing manifests that's part of the .NET Framework SDK. For VS2005, it can be found at %ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin.
Then create a batch file to execute mage.exe.
Then copy the contents of the network share deployment folder to a new virtual directory on the web server.
Finally, run the batch file.
The batch file should look something like this:
mage.exe
-update >>path to your application manifest in the virtual directory<<
-providerurl >>location of application manifest virtual directory<<
-certfile Clickoncekey.pfx -password >>your password<<
My department doesn't have a server to host web applications developed in ASP.NET. They do have RHEL boxes having Apache web server, which won't host my ASP.NET web pages. I inquired and they said they have mono which would run my .NET applications.
I created a simple web page and it worked on my windows laptop.
My question is what exactly should I copy to my home directory (has CGI environment) on the RHEL box. Copying dll's won't make sense, so should I copy the .aspx files?
I read a bit about it here http://www.codeproject.com/KB/cross-platform/introtomono2.aspx
They say just copy the .aspx files. In that case how does it all work? I mean does mono compile the .aspx files and makes it compatible for Apache to host them?
Does it have any flip sides like everything I develop in ASP.NET on windows can be shown on linux web server as it is using mono?
cheers
If you are using the Website model, you should copy the whole directory contents (they'll be compiled at run time). If you are using the Web application model, you can skip copying .cs files (the .cs files will be compiled to .dll files in the bin folder beforehand). You should copy bin folder instead, along with all other .aspx, .ascx, .asax, .config, ... files.
Your Apache server should have mod_mono configured or should use xsp2. Copy your ASP.NET code to the a dir on the Apache server and configure the directory in Apache and it should work.
Copying DLLs does make sense since they are MSIL and that is exactly what Mono needs.