简体   繁体   English

static 站点的 URL

[英]URL of a static site

I am working to develop my portfolio, a static site using Jekyll and ruby.我正在开发我的产品组合,一个使用 Jekyll 和 ruby 的 static 站点。 When I first served it, I got the URL that went something like localhost:4000 as an output in the terminal.当我第一次提供它时,我得到了 URL,它在终端中类似于 localhost:4000 作为 output。 Afterwards, I would pin the tab, and continue making changes to it.之后,我会固定标签,并继续对其进行更改。 But mistakenly, I closed the tab and the link from the history of the browser doesn't seem to work.但错误地,我关闭了选项卡,浏览器历史记录中的链接似乎不起作用。 Can anyone help me get back the link?谁能帮我找回链接? I did try "cd myblog" then, "bundle exec jekyll serve" But this doesn't work.我确实尝试过“cd myblog”,然后是“bundle exec jekyll serve”,但这不起作用。 在此处输入图像描述 在此处输入图像描述

From the Jekyll QuickStart guide:来自Jekyll 快速入门指南:

  1. Change into your directory, eg:切换到您的目录,例如:

     cd myblog
  2. Build the site and make it available on a local server.构建站点并使其在本地服务器上可用。

     bundle exec jekyll serve
  3. Browse to http://localhost:4000浏览到 http://localhost:4000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM