laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.24k stars 187 forks source link

Custom config directory with custom site location creates unexpected search path when pushing site #296

Open jasonschock opened 7 years ago

jasonschock commented 7 years ago

Result:

[fail] Could not load the site:
       Could not find a website. (The site setting in s3_website.yml points to a non-existing file deploy_config/stage/public)
       Either use the --site=DIR command-line argument or define the location of the site in s3_website.yml.

       Here's an example of how you can define the site directory in s3_website.yml:
          site: dist/website

Expected results:

Current workaround:

The solution is indeed to configure the site dir as site: ../../public in s3_website.yml, but this seems counterintuitive based on the docs.

swgn commented 6 years ago

I think your workaround is the best solution for your site.

s3_website only appears to look in either _site/ or public/output/, not public/ as your case suggests 👍