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

404 errors when using hyde serve with base_url #255

Open
CharString opened this issue Mar 4, 2014 · 5 comments
Open

404 errors when using hyde serve with base_url #255

CharString opened this issue Mar 4, 2014 · 5 comments

Comments

@CharString
Copy link

When base_url != '/' hyde serve will only serve http://localhost:8080/index.html

$ grep base_url site.yaml 
base_url: /mtw2014/
$ hyde serve&
...
$ GET http://localhost:8080/mtw2014/
19:50:57 hyde.server Cannot load file: [mtw2014/]
localhost.localdomain - - [04/Mar/2014 19:50:57] code 404, message File not found
localhost.localdomain - - [04/Mar/2014 19:50:57] "GET /mtw2014/ HTTP/1.1" 404 -
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 404.
<p>Message: File not found.
<p>Error code explanation: 404 = Nothing matches the given URI.
</body>
@tasn
Copy link

tasn commented Mar 4, 2014

I don't think it's meant to work with serve... It's only for deploying...

@CharString
Copy link
Author

Why not? I kind of expected this to work:

...edit stuff...
$ hyde gen
$ hyde serve
...check stuff...(edit more, check more with `?refresh`)
$ hyde publish

Leaving out the need of having 2 yaml files with 2 deploy directories and different base_url.

@tasn
Copy link

tasn commented Mar 5, 2014

True. Nvm my previous comment then.

@CharString
Copy link
Author

I'm just glad to see a pulse on this project ;-)

@tasn
Copy link

tasn commented Mar 5, 2014

I'm also happy. This project is super useful, and with a bit of love, it can be "complete". I already use it in production, but there are some quirks here and there that need to be ironed out.

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

2 participants