Use razor/asp.net mvc3 to generate static html pages?

后端 未结 7 1655
一整个雨季
一整个雨季 2020-12-29 05:55

For one projet, I\'ve to generate static .html pages, which are gonna to be published on a remote server.

I\'ve to automate the creation of those files from a c# cod

7条回答
  •  温柔的废话
    2020-12-29 06:20

    I'm working on a similar solution. My website is running normally (ASP.NET + DB + CMS) on a staging environment and then I use wget to crawl it and generate static html pages. Those static html pages, including assets are then uploaded to a Amazon S3 Bucket. That way the website becomes fully static, with no dependencies.

    I'm planning to have a daily task that crawls specific pages on the website to make it speedier, e.g. only crawl /news every day.

    I know you've already found a solution, but maybe this answer might be helpful to others.

提交回复
热议问题