TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

using GAE and DryDrop to host static sites for free

57 点作者 harper超过 14 年前

7 条评论

StavrosK超过 14 年前
I posted the same thing yesterday, but it went nowhere. I guess I should have included the word "FREE!" in the title.<p>Anyway, here it is. As the blog post explains [1], I created a small Flask app that will let you host multiple static sites/domains <i>on one GAE instance</i> without having to learn Git or push to Github or anything. Just download the app [2], put the static files and media in the appropriate directories, configure the URLs and deploy.<p>[1] <a href="http://blog.stochastictechnologies.com/easily-host-multiple-static-sites-on-one-app" rel="nofollow">http://blog.stochastictechnologies.com/easily-host-multiple-...</a><p>[2] <a href="https://github.com/stochastic-technologies/static-appengine-hoster" rel="nofollow">https://github.com/stochastic-technologies/static-appengine-...</a>
评论 #2144403 未加载
评论 #2144874 未加载
pamelafox超过 14 年前
I use GAE + Github for several of my tiny websites. I don't use DryDrop as I hadn't heard of it, and I like being able to control the app.yaml myself (particularly useful for when I have a sudden urge to port static sites over to Django, which happens surprisingly often). Also, it looks like DryDrop may actually use script handlers instead of static file handlers, which wouldn't be as performant for my simple stuff.<p>The trickiest part of using GAE for static files is setting up the app.yaml, since it's different from just FTPing files and having them show up on your server. Here's an example app.yaml for a completely static site, where the root redirects to index.html, and the rest is mapped to a static directory (with nested directories in it): <a href="https://gist.github.com/774838" rel="nofollow">https://gist.github.com/774838</a>
评论 #2145177 未加载
yatsyk超过 14 年前
GitHub pages[1] is other great option for static site hosting. You are pushing to github repo and your site is regenerating. Jekyll [2] is used as static site generator. I'm using GH Pages for HNresources.com hosting. If I need quickly update site I could change source page on project page on github.com site without even using git.<p>One question according to GAE hosting: If your application wasn't requested for some time it is unloaded from memory and first request after that require more time. Is it still apply to static sites?<p>* [1] <a href="http://pages.github.com/" rel="nofollow">http://pages.github.com/</a><p>* [2] <a href="https://github.com/mojombo/jekyll" rel="nofollow">https://github.com/mojombo/jekyll</a>
评论 #2142956 未加载
评论 #2142866 未加载
评论 #2142644 未加载
rb2k_超过 14 年前
I like the idea of having a git backend for site data, but in the case of the author: why not just use a regular host? There are some pay-for-what-you-use hosts (e.g. <a href="https://www.nearlyfreespeech.net/" rel="nofollow">https://www.nearlyfreespeech.net/</a>).
评论 #2144944 未加载
评论 #2142912 未加载
评论 #2142822 未加载
nolite超过 14 年前
What do you use as a origin server for your static media? And how does cloudfront work.. when its cached on the CDN, how long does it stay there? Don't you have to pay for files stored on the CDN? Oh, and where's your drydrop fork? :)<p>Thanks for the post, really nice
评论 #2142582 未加载
RK超过 14 年前
I think you can do the same with GAE + Dropbox.<p>See Option B here:<p><a href="http://www.labnol.org/software/dropbox-with-custom-domain/18349/" rel="nofollow">http://www.labnol.org/software/dropbox-with-custom-domain/18...</a>
ryankanno超过 14 年前
This is pretty genius. Free static web hosting, ftmfw. :)