Static website framework and hosting

agolangf · · 879 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi, i&#39;m wondering wich framework and hosting people are recommend for static sites. Fast web response is the main object. So framework wise i cant see anything better then <a href="https://github.com/julienschmidt/httprouter" rel="nofollow">httprouter</a> But hosting wise im completely confused where is the best place to host the site performing wise </p> <hr/>**评论:**<br/><br/>dwevlo: <pre><p>If it&#39;s really completely static you can pre-compile HTML and upload them to an S3 / GCS bucket: <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html" rel="nofollow">http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html</a>.</p> <p>And then you can put CloudFlare (or some other cdn) in front of that site. You will have a hard time beating that performance / uptime.</p> <p>There are lots of tools out there to generate static sites. Here&#39;s one in Go: <a href="http://gohugo.io/" rel="nofollow">http://gohugo.io/</a></p></pre>AbhiAgarwal: <pre><p>I usually just use the standard library. Something like this would work well:</p> <p><a href="https://gist.github.com/AbhiAgarwal/b631c54c366a794fae74" rel="nofollow">https://gist.github.com/AbhiAgarwal/b631c54c366a794fae74</a></p></pre>anoobisus: <pre><p>What you&#39;re looking for is Hugo (which takes markdown docs and converts to static html with indexing, content pages, etc)</p> <p>and then hosting on Github with a CNAME pointed at it. Put CloudFlare free SSL in front and you have a 100% free SSL-enabled blog!</p></pre>gmonnerat: <pre><p>I am using <a href="http://gohugo.io" rel="nofollow">Hugo</a> in my <a href="http://gmnt.net" rel="nofollow">blog</a> and is very simple to install and use.</p></pre>miko5054: <pre><p>(Hugo)[<a href="http://gohugo.io/" rel="nofollow">http://gohugo.io/</a>] looks very cool , But im not going write the site im just looking for the best hosting solution </p></pre>elithrar_: <pre><p>If it&#39;s a static site you won&#39;t use <code>httprouter</code> or anything. That&#39;s not what a static site is.</p> <p>You&#39;re just hosting a bunch of flat files, so you can use ANY host. Many people use GitHub Pages + Jekyll, but it would work with any static file site. Amazon also provides for static site serving over S3. You could use GoDaddy if you really wanted to.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

879 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传