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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What is your process for creating a new static website and deploying it?

11 点作者 12s12m将近 8 年前
Please list the whole process from inception to the final moment when the site is live on the domain. What are the tools you use? What are the steps involved?

8 条评论

smt88将近 8 年前
I&#x27;ve been a web developer since 1996. I built dozens of websites professionally before moving on to building apps in many industries, including finance and insurance.<p>I can, without hesitation, wholeheartedly endorse SquareSpace because it requires zero of my skills. It makes so many painful things painless. I have no idea why people put static websites on their own infrastructure, especially when anything moderately popular needs paid DDoS protection anyway.<p>In fact, with all the modules, my website would have to get pretty fancy (beyond ecommerce, beyond CMS) before I&#x27;d build a custom solution.<p>I&#x27;ve actually turned away at least 10 clients (who would have paid me $10k+ each) and told them to just build it themselves with SquareSpace and hire a designer instead. I feel like it&#x27;s unethical to take those contracts as a developer anymore.
评论 #14681014 未加载
rwieruch将近 8 年前
I use Hugo [0] as a static website generator. They have plenty of themes [1] to choose from. You can still adjust it with basic knowledge in HTML&#x2F;CSS. Afterward you can chose where to host it. You can use Github Pages [2] for free or pay for a service like DigitalOcean (starting with 5€ a month which scales well) [3]. I wrote a technical cheatsheet [4] on how to setup your own website with these ingredients.<p>- [0] <a href="https:&#x2F;&#x2F;gohugo.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gohugo.io&#x2F;</a><p>- [1] <a href="http:&#x2F;&#x2F;themes.gohugo.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;themes.gohugo.io&#x2F;</a><p>- [2] <a href="https:&#x2F;&#x2F;pages.github.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pages.github.com&#x2F;</a><p>- [3] <a href="https:&#x2F;&#x2F;www.digitalocean.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.digitalocean.com&#x2F;</a><p>- [4] <a href="https:&#x2F;&#x2F;www.robinwieruch.de&#x2F;own-website-in-five-days&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.robinwieruch.de&#x2F;own-website-in-five-days&#x2F;</a>
评论 #14699614 未加载
0x54MUR41将近 8 年前
I use static website for my blog. Tools I use:<p>* Jekyll for static site generator<p>* GitLab Pages for storing changes as well as deploying site and costuming domain&#x2F;SSL<p>* Vim editor for making changes<p>Steps:<p>1. Clone existed Jekyll&#x27;s files from GitLab Pages&#x27;s repository into local.<p>2. Making changes.<p>3. Push the changes into remote repository<p>4. Custom domain and SSL.<p>Of course, I don&#x27;t need to clone repository and custom domain again if my site has already lived. I just need to update SSL when my certificate expires. You can check this page [1] for further details.<p>[1]: <a href="https:&#x2F;&#x2F;about.gitlab.com&#x2F;features&#x2F;pages&#x2F;" rel="nofollow">https:&#x2F;&#x2F;about.gitlab.com&#x2F;features&#x2F;pages&#x2F;</a>
评论 #14693897 未加载
richardknop将近 8 年前
Static website? Just write HTML files in text editor and copy to a server running nginx via ftp.<p>If you are going to make changes to the website often, add an extra step for creating git repository and instead of using FTP to push files to server just pull from git.
评论 #14693899 未加载
err4nt将近 8 年前
Open Coda (my code editor)<p>Begin typing content (as TXT or MD)<p>Turn that into HTML manually add DOCTYPE, tags, CSS, and mark up my content.<p>Host either on Github pages (use terminal in my editor to push to Github) or upload to my own web server, or Amazon S3 from the file manager in my editor.<p>View static page in browser.
atmosx将近 8 年前
Middleman[1] and a rake task running rsync.<p>[1] <a href="https:&#x2F;&#x2F;middlemanapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;middlemanapp.com&#x2F;</a>
评论 #14693904 未加载
zabana将近 8 年前
Jekyll &gt; Github pages. Works great with (&lt;insert static site generator of your choice here&gt;).
feistypharit将近 8 年前
I really like netlify. Also checkout netlify cms, their own cms.
评论 #14693908 未加载