Support Forums

Failed to deploy static websit on Netlify

Hi guys,

I’m the newbie to netlify and need some help from your expertise.
I’m trying to deploy a simple website to experience with netlify deployment, and I’m not sure what to put for the base directory, build command and publish directory.

As it is not a web app, and it is just a static html website, I don’t have any build command for it.
My file structure is pretty simple as well, it is just contain the root directory and the html files in it. For all the resources available on netlify and tutorial over the internet, seems like netlify only support for web app, not sure if that is true.

I have tried a few ways like put all the files in public folder and added netlify.toml, but still failed to deploy.
Please point me to the correct direction.

My site name is hopeful-curie-ccb112.netlify.app

And below is my build log with the snapshot of the build settings:

9:49:59 PM: Build ready to start
9:50:01 PM: build-image version: 3bcb38c35508b42e9121d4badfe6d8c66fd7a3f0
9:50:01 PM: build-image tag: v4.3.2
9:50:01 PM: buildbot version: 0966611527937161c7edcafc1347bc5a61d77108
9:50:01 PM: Fetching cached dependencies
9:50:01 PM: Failed to fetch cache, continuing with build
9:50:01 PM: Starting to prepare the repo for build
9:50:02 PM: No cached dependencies found. Cloning fresh repo
9:50:02 PM: git clone GitHub - shinnguyen93/simply-recipes
9:50:05 PM: Preparing Git Reference refs/heads/master
9:50:05 PM: Parsing package.json dependencies
9:50:06 PM: No build steps found, continuing to publishing
9:50:06 PM: Creating deploy upload records
9:50:06 PM: Failing build: Failed to build site
9:50:06 PM: Failed during stage ‘building site’: Deploy directory ‘simply-recipes’ does not exist
9:50:06 PM: Finished processing build request in 5.704556508s

Thank you in advance!!!

Hi @shinnguyen93

Your site is in the root of your git repository, not in a directory called simply-recipes as you specified in the build settings.

Unset the publish directory and trigger a new deploy.

1 Like

Hi @coelmay,

Thank you for your help!!! :ok_hand: :+1:
The site is live now!!!

1 Like