mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:22:09 +02:00
middleman: add page (#3880)
This commit is contained in:
parent
cd357a2b03
commit
3c67d56b60
1 changed files with 28 additions and 0 deletions
28
pages/common/middleman.md
Normal file
28
pages/common/middleman.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# middleman
|
||||||
|
|
||||||
|
> Static site generator written in Ruby.
|
||||||
|
> More information: <https://middlemanapp.com/>.
|
||||||
|
|
||||||
|
- Install the Middleman gem:
|
||||||
|
|
||||||
|
`gem install middleman`
|
||||||
|
|
||||||
|
- Create a new Middleman project:
|
||||||
|
|
||||||
|
`middleman init "{{project_name}}"`
|
||||||
|
|
||||||
|
- Start local server for current project on port 4567:
|
||||||
|
|
||||||
|
`middleman server`
|
||||||
|
|
||||||
|
- Start local server for current project on a specified port:
|
||||||
|
|
||||||
|
`middleman server -p "{{port}}"`
|
||||||
|
|
||||||
|
- Build your project to prepare to deploy:
|
||||||
|
|
||||||
|
`bundle exec middleman build`
|
||||||
|
|
||||||
|
- Deploy your Middleman project:
|
||||||
|
|
||||||
|
`middleman deploy`
|
Loading…
Add table
Reference in a new issue