HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

middleman — Static site generator written in Ruby. More information: <https://middlemanapp.com/basics/install/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
rubycommandgeneratormiddlemanstaticwrittenclisite

Problem

How to use the middleman command: Static site generator written in Ruby. More information: <https://middlemanapp.com/basics/install/>.

Solution

middleman — Static site generator written in Ruby. More information: <https://middlemanapp.com/basics/install/>.

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 the project in the current directory to prepare for deployment:
bundle exec middleman build


Deploy the Middleman project in the current directory:
middleman deploy

Code Snippets

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 the project in the current directory to prepare for deployment

bundle exec middleman build

Deploy the Middleman project in the current directory

middleman deploy

Context

tldr-pages: common/middleman

Revisions (0)

No revisions yet.