Based on https://github.com/joshukraine/middleman-gulp
Notes
node-sassversion in use does not support Node 16 or higher. You are advised to install and use Node 14, otherwiseyarn installwill fail._- Python 2 is required. We recommend using
pyenvto install Python 2, then set it as local default.pyenv install 2.7 && pyenv shell 2.7should 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 serverSite 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