TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Surge – Static Web Publishing for Front-End Developers

138 pointsby stevelacyalmost 9 years ago

21 comments

sotojuanalmost 9 years ago
I&#x27;m not a paying customer of or affiliated with Surge—just a happy user.<p>Surge is what I&#x27;ve always wanted to when I do frontend development for fun and learning. This is especially true if you&#x27;re new. When you&#x27;re new, you don&#x27;t want to set up a server to push to Heroku or Digital Ocean, you may not want to use GitHub pages, or other alternatives (not aware of all, just the ones I mentioned). You may still be new to git and git-based deployments.<p>Surge is simple: `surge -p build` will upload the `build` directory and give you a nice HTTPS URL to share with your friends. `surge` does the same with the current directory. You can pick a URL under their domain or use one you own. It all takes a few seconds. Perfect for portfolios, demos, etc.<p>If you use npm you can `npm install --save-dev surge` and add a script that does your production build step and then calls surge to deploy it.<p>Very underrated service!
评论 #11879274 未加载
juandazapataalmost 9 years ago
Nice service, but too expensive to be honest. My static websites (built with middleman) are hosted in Amazon S3 as a static website bucket and have a Cloudfront distribution in front of it. I use `middleman s3_sync` to deploy the build in one command and it takes care of everything, even Cloudfront invalidation. All for just a few pennies per month.<p>Anyway, keep up the good work.
评论 #11880403 未加载
评论 #11879555 未加载
评论 #11879440 未加载
评论 #11879103 未加载
pyrophanealmost 9 years ago
One of the testimonials:<p>&quot;From now on, I think I&#x27;m going to strive to build all my apps as fully static sites.&quot;<p>What? I can understand the idea of not overcomplicating an app when you don&#x27;t need to, but how does this goal make sense for anyone who wants to build anything non-trivial?
评论 #11879652 未加载
评论 #11879623 未加载
评论 #11879621 未加载
评论 #11880047 未加载
评论 #11880024 未加载
zackbloomalmost 9 years ago
If you&#x27;re interested in setting up something similar on AWS, you could take a look at Stout [1].<p>[1] <a href="http:&#x2F;&#x2F;stout.is" rel="nofollow">http:&#x2F;&#x2F;stout.is</a>
评论 #11879471 未加载
cyberpantheralmost 9 years ago
I don&#x27;t work directly with Surge but the other developers where I&#x27;m at have found Surge to have too much downtime and we&#x27;re moving off of it now. Maybe in the future they will have a more reliable service, but right now you&#x27;ll definitely experience the growing pains of a new tool.
评论 #11879810 未加载
评论 #11879866 未加载
pesfandiaralmost 9 years ago
Very nice. Services like this can help keep the costs and maintenance of smaller projects to a minimum. I myself created a proof-of-concept online programming judge without any server (see <a href="http:&#x2F;&#x2F;www.pesfandiar.com&#x2F;blog&#x2F;2016&#x2F;05&#x2F;12&#x2F;javascript-online-hosting-static-site-cheaply" rel="nofollow">http:&#x2F;&#x2F;www.pesfandiar.com&#x2F;blog&#x2F;2016&#x2F;05&#x2F;12&#x2F;javascript-online-...</a>). I only used Google Cloud Platform and Cloudflare at virtually no cost.<p>I wish they had some minimal features that you&#x27;d need a server for. I&#x27;d pay $5-10&#x2F;mo to get some basic authentication, custom headers, and maybe even some sort of user-specific key-value store.
munroalmost 9 years ago
I&#x27;ve been using neocities.org for the same purpose, compile a web app, signup for an account, and drop the assets.<p><a href="https:&#x2F;&#x2F;3d3d3d.neocities.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;3d3d3d.neocities.org&#x2F;</a>
nathancahillalmost 9 years ago
Love Surge so much. The CLI interface is stellar. We use it for testing feature branches of frontend code. Writing a tool to automatically spin up an environment for every pull request (alongside the CI). Helps the whole team test new features without having to pull down the branch and review locally.
hanniabualmost 9 years ago
I mean, if you&#x27;re doing a static site you can also use github pages with a simple push command. Is there some difference between surge and doing this that I&#x27;m not seeing?
评论 #11880460 未加载
评论 #11880033 未加载
piotrkubisaalmost 9 years ago
Interesting idea for making kind of a PaaS for static websites.<p>I have been using a Firebase Hosting [1] (provides free https, CDN, CLI publish with `firebase serve`) for a while. Obviously, Firebase quotas and pricing is way another but I am curious how do you compare Surge to Firebase Hosting?<p>[1] <a href="https:&#x2F;&#x2F;firebase.google.com&#x2F;docs&#x2F;hosting&#x2F;" rel="nofollow">https:&#x2F;&#x2F;firebase.google.com&#x2F;docs&#x2F;hosting&#x2F;</a>
gk1almost 9 years ago
See also <a href="https:&#x2F;&#x2F;www.netlify.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.netlify.com&#x2F;</a> ... Not sure on exact differences between the two, maybe someone who&#x27;s used one or the other can chime in?
评论 #11879532 未加载
excitomalmost 9 years ago
It feels like 1994 again! Just rcp an HTML file from my workstation to the web server!
oztenalmost 9 years ago
Another interesting competitor is PubStorm <a href="https:&#x2F;&#x2F;www.pubstorm.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pubstorm.com&#x2F;</a><p>Their price is TBD, but they have a cool &quot;quick and easy revert&quot; feature.
评论 #11881681 未加载
damarualmost 9 years ago
As a web developer I feel sometime solution like that remove the understanding of how the internet works. This script can be replaced by a tiny shell script, that runs a rsync of the dev folder to your server, and I think it is important to know basic scripting like that even for a front end dev. I have to say that I haven&#x27;t tried the script but I haven&#x27;t seen anything impressive from the presentation video.
jordanlevalmost 9 years ago
Is there a difference between what Surge offers versus ngrok?<p>(Genuinely curious, not trying to imply that &quot;this has been done before&quot; or shouldn&#x27;t exist!)
评论 #11879687 未加载
Rabidgremlinalmost 9 years ago
Along similar lines I have been playing with Bitbucket Pipelines and Hugo to build static websites on commit and deploy them to S3 buckets. Really like the way they use docker containers as build agents, it&#x27;s very tidy: <a href="https:&#x2F;&#x2F;github.com&#x2F;rabidgremlin&#x2F;hugo-s3" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rabidgremlin&#x2F;hugo-s3</a>
评论 #11879675 未加载
评论 #11881800 未加载
krat0sprakharalmost 9 years ago
Don&#x27;t have enough good things to say about Surge. Wonderful service, damn easy to work with, great number of features (even in the free plan).
kentoralmost 9 years ago
Very nice service and interface. Only issue I&#x27;ve had was when my site went down a couple of times due to issues at DigitalOcean.
评论 #11879974 未加载
gumbyalmost 9 years ago
grumble: they mention git hooks (and if you click on the description they are RCS agnostic) but they use the octocat logo.<p>Just yesterday I mentioned that I was using git and my gf assumed I meant github. She (not a developer) thought that git was a product sold by github.
评论 #11879999 未加载
johnwheeleralmost 9 years ago
pretty!
romanovcodealmost 9 years ago
&gt;Free SSL for surge.sh subdomains<p>Wow! Thanks! It&#x27;s not like I can just get it for free on any domain I like. Not even speaking about servers like Caddy that can do that automatically on launch.
评论 #11879272 未加载