About the Netlify Dev Open Beta category

answered
#1

Netlify Dev talk! Getting started, resources, ideas, questions and everything else surrounding Netlify Dev.

#2

Hi there! Anyone knows how to pass the “–live” option in the to Netlify Dev when using middleman as the site generator?
this is my config file:
‘[dev]
command = “bundle exec middleman” # Command to start your dev server
port = 4567 # Port that the dev server will be listening on
publish = “build” # If you use a _redirect file, provide the path to your static content folder’

but when I run ‘netlify dev --live’ the option is passed to middleman and not to netlify dev.
What am I getting wrong?

Thanks!

#3

i dont understand this bug at all tbh. it shouldnt happen, i dont think. if you’re familiar with oclif, youre welcome to check out the source: https://github.com/netlify/netlify-dev-plugin/blob/master/src/commands/dev/index.js#L248

however i’m not at all familiar with middleman and the ruby ecosystem so i’m gonna need some help here.

EDIT: ahh - one clue is we have no detector for middleman: https://github.com/netlify/netlify-dev-plugin/tree/master/src/detectors so you’re just running the simple static server. therefore --live is being passed to your command, which is middleman. we should probably… not do that

#4

Would love a detector for middleman, more than willing to invest some time in testing etc if that’s needed.

1 Like
#5

the jekyll one is here - https://github.com/netlify/netlify-dev-plugin/blob/master/src/detectors/jekyll.js