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

Load Assets? #15

Closed
ryanleesipes opened this issue Jan 23, 2018 · 7 comments
Closed

Load Assets? #15

ryanleesipes opened this issue Jan 23, 2018 · 7 comments

Comments

@ryanleesipes
Copy link
Collaborator

When I build and open up the index.html in thunderbird.net (for the website), it loads without assets! Is there anyway to fix this?

@ryanleesipes
Copy link
Collaborator Author

Not just assets, I guess it's CSS formatting too.

@Sancus
Copy link
Member

Sancus commented Feb 1, 2018

That's normal, it's not built with local paths, it's built to be hosted by a web server. I do development in a VM running apache.

I don't think it's worth independently fixing this, should probably be solved with a docker container.

@Sancus Sancus closed this as completed Feb 1, 2018
@benbucksch
Copy link

benbucksch commented Feb 1, 2018

Ryan, you can just start Python's "Simple HTTP server", using:

cd <your/directory/with/the/index.html>
python -m SimpleHTTPServer 8000

(for Python version 2. If you have Python 3, it would be python -m http.server 8000 instead.)
and then open http://localhost:8000 in your browser.

@Sancus
Copy link
Member

Sancus commented Feb 1, 2018

Ah yeah good point thanks Ben, I always forget about that thing.

It'll be a little janky because it won't run the language redirect code and stuff but it does indeed load individual pages with assets just fine.

@benbucksch
Copy link

benbucksch commented Feb 1, 2018

Yeah, it's a really simple and useful tool for small stuff. I love it for its simplicity.

@ryanleesipes
Copy link
Collaborator Author

@benbucksch sorry to hit this again, what directory do you run the simple http server in. It still complains about css issues even though I have less installed globally (the specific version outlined in #20) and everything builds without error. I'm clearly doing something wrong, but I can't determine what that is.

@ryanleesipes
Copy link
Collaborator Author

Nevermind, I figured it out, I had to run it in the thunderbird.net directory, I can't believe I didn't try that sooner, I was going into the en-US directory and running it since that's where my index.html file is.

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