Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for static files? #623

Closed
HowardvanRooijen opened this issue Jun 4, 2020 · 5 comments
Closed

Support for static files? #623

HowardvanRooijen opened this issue Jun 4, 2020 · 5 comments
Assignees
Projects

Comments

@HowardvanRooijen
Copy link

Hi,

I have an existing static site (just .html files) which is currently deployed to netlify.

What configuration do you have to use to just deploy these files? At the moment the build is failing with the error Error: Could not detect the language from repo.

Many thanks!

Howard

@qianz2
Copy link
Contributor

qianz2 commented Jun 4, 2020

Hi Howard,

Thanks for bring up the issue. Currently, we are working on supporting static websites. We'll update the release when the static webs detection and builds are supported by Oryx.

Stella

@kichalla
Copy link
Contributor

kichalla commented Jun 5, 2020

cc @miwebst

@apalmer
Copy link

apalmer commented Aug 17, 2020

@HowardvanRooijen I was able to get a site that was 100% static html, css, and javascript to deploy. It was definitely a workaround style approach but it did work:

  1. remove everything from my repository except
  • git related files (.gitignore)
  • .github directory
  • directory (i called mines 'pregen') containing html, css, js, gifs, etc
  1. in the .github/azure-static-web-apps-*.yml file set the app_location to your html directory (I called mines 'pregen')

This worked for deploying truly static web site with no real build process to Azure Static Web Apps

@kichalla kichalla added this to Needs Triage in Standup via automation Oct 7, 2020
@kichalla kichalla moved this from Needs Triage to Triaged in Standup Oct 7, 2020
@kichalla
Copy link
Contributor

@qianz2 Please check with AppService folks about their purely static files image.

@miwebst
Copy link

miwebst commented Oct 21, 2020

@kichalla I think the main thing that is confusing here is that Oryx emits an error about detection. As discussed we probably want to have an option to not emit that error and just use the custom status code for saying detection failed. Static Web Apps assumes static content when we see that error code.

@arroyc arroyc closed this as completed Mar 4, 2021
Standup automation moved this from Triaged to Done Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

6 participants