You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get a static site working using the s3rver CLI. Ideally, I want to point s3rver to a folder containing the source and the website configuration, and it to serve the documents correctly.
It's currently 404ing trying to retrieve index.html because the html files are not being added into the actual bucket.
Current code:
s3rver -d /website -a 0.0.0.0 --configure-bucket website.local /website/website-configuration.xml
Where /website contains the html files.
Output of lsing the directories (for reference, this is running in Docker):
Is it possible to do this? Looking at the tests, you seem to have to create the bucket first, and then add the html files like you would add to a normal bucket.
Thanks!
The text was updated successfully, but these errors were encountered:
scooper91
changed the title
[Qustion
[Question/feature request] Run static website without having to put each file after bucket creation
Apr 22, 2020
Hi @scooper91! This question actually does come up a lot, I'm currently putting together some "getting started" guides that will include examples for scenarios like this.
I'm trying to get a static site working using the s3rver CLI. Ideally, I want to point s3rver to a folder containing the source and the website configuration, and it to serve the documents correctly.
It's currently 404ing trying to retrieve
index.html
because the html files are not being added into the actual bucket.Current code:
Where
/website
contains the html files.Output of
ls
ing the directories (for reference, this is running in Docker):Is it possible to do this? Looking at the tests, you seem to have to create the bucket first, and then add the html files like you would add to a normal bucket.
Thanks!
The text was updated successfully, but these errors were encountered: