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

Static files only work in a website's root folder #60

Open
sanjaytwisk opened this issue May 15, 2017 · 2 comments
Open

Static files only work in a website's root folder #60

sanjaytwisk opened this issue May 15, 2017 · 2 comments
Assignees

Comments

@sanjaytwisk
Copy link
Contributor

If you upload the static files generated with gulp dist to any folder other than the website's root, for example http://example.com/test, the statics are not found because the urls are not relative. This problem can be reproduced when using gulp upload using the default upload config.

@DaveBitter
Copy link
Collaborator

is this fixed by #114 ?

@waarissyb
Copy link
Member

@DaveBitter no it isn’t. We need to rewrite some URLs in order to make this work.

For example, we’re referring to /static/css/all.css. This is fine when dist folder is uploaded to the root of a domain, like https://example.com/. But if it’s uploaded to https://example.com/boilerplate/, the URLs don’t match any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants