Based on https://github.com/joshukraine/middleman-gulp
Notes
node-sass
version in use does not support Node 16 or higher. You are advised to install and use Node 14, otherwiseyarn install
will fail._- Python 2 is required. We recommend using
pyenv
to install Python 2, then set it as local default.pyenv install 2.7 && pyenv shell 2.7
should work.
-
Install ruby gems
bundle install
-
Install yarn packages
yarn install --check-files
-
Start the Middleman server. Note that this will also invoke Webpack via the external pipeline.
$ bin/middleman server
Site will be accessible at http://localhost:4567/ .
-
To build html and assets for production, run
$ bin/middleman build
Or use the available docker-compose environment:
docker-compose up -d
docker-compose exec app bin/middleman server --bind-address 0.0.0.0