Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Websharper Application from Visual Studio 2012

Tags:

f#

websharper

So as a beginner to the entire Visual Studio IDE and a beginner to F# and the F# based WebSharper, I have certain issues on the system. I use the 'Ctrl+F5' to test the application. Now what do I do if I want to package the application and deploy it on another server, say apache server? Assuming the basic example here has just the .js files and HTML files, where do I find the generated web pages and/or .js files or how do I generate them.

like image 699
N00bsie Avatar asked Oct 03 '22 10:10

N00bsie


1 Answers

If you created the application using the HTML Site template you’ll find the HTML bundle in the project’s bin folder. You can deploy WebSharper applications built using this template on any server you prefer. If you used one of the Web Application templates (Sitelets, ASP.NET, …) you have the choice between Windows hosting and following these instructions to host the application using Mono on a Linux box running nginx.

When it comes to Windows hosting, AppHarbor is a great choice for deploying WebSharper apps and you can use one of these two templates which both build on AppHarbor to jumpstart your project:

  • WebSharperMVC
  • WebSharperBootstrap
like image 78
Taha Avatar answered Oct 13 '22 11:10

Taha