Middleman build with non-empty base directory

I need advice to debug a deploy…

My basic deploy settings look like this:
Base directory middleman

Build command middleman build

Publish directory middleman/build/

All of the middleman part seems to go OK (loading gems, creating files), but then at the end it says the “build” directory does not exist.

8:59:57 AM: Build script success
8:59:57 AM: Failing build: Failed to build site
8:59:57 AM: failed during stage ‘building site’: Deploy directory ‘build/’ does not exist

Later on, I’ll try a local build following the instructions given, but this morning I wanted to just push out a quick build and hit this failure.

Perhaps leave out the trailing slash for the publish directory, so middleman/build instead of middleman/build/

Thanks for the suggestion. I’ll give it a try.

The build failed with nearly the same error:

9:42:42 AM: Build script success
9:42:42 AM: Failing build: Failed to build site
9:42:42 AM: failed during stage ‘building site’: Deploy directory ‘build’ does not exist

D’oh! You already set the base directory. Just build for the publish_directory should be fine.

I agree with @tomrutgers. Would you please try making the publish directory just “build”?

I ended up just moving the whole Middleman to the root of the repository and the deploy worked perfectly.

1 Like

Haha yeah I guess that works as well :sweat_smile: