Files
tldr/pages.zh/common/middleman.md

24 lines
500 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 中介
> 用Ruby编写的静态网站生成器。
> 更多信息:<https://middlemanapp.com/>。
- 创建一个新的Middleman项目
`middleman init "{{project_name}}"`
- 在4567端口上启动当前项目的本地服务器
`middleman server`
- 在指定端口上启动当前项目的本地服务器:
`middleman server -p "{{port}}"`
- 构建当前目录中的项目以准备部署:
`bundle exec middleman build`
- 部署当前目录中的Middleman项目
`middleman deploy`