sfu-natlang / lensingwikipedia

Lensing Wikipedia is an interface to visually browse through human history as represented in Wikipedia. This the source code that runs the website:
http://lensingwikipedia.cs.sfu.ca
Other
11 stars 4 forks source link

Use Flask to serve Lensing instead of statically serve index.html #166

Closed avacariu closed 9 years ago

avacariu commented 9 years ago

This allows us to work on the same code (instead of me copying code from frontend/ to test).

All of the javascript and CSS served by this is a direct copy of what's in frontend/, so nothing changed in terms of functionality. The domain specific .js files are controlled by a config.py and conditionals within the templates.

So far I've only tested the wikipediahistory domain (the default) since I'm not too sure what avherald should look like. I wrote all of the <script> and <link> tags based on the Makefiles, so it should work the same as before.

anoopsarkar commented 9 years ago

Can I serve on port 80 when master is deployed to natlang-web.cs.sfu.ca?

Is there a howto in website.md with step by step instructions?

avacariu commented 9 years ago

It should work fine with mod_wsgi. I'll test it tomorrow (or later today, rather) and I'll update website.md with details.

avacariu commented 9 years ago

I added some more details to website.md about how to set up mod_wsgi. I just set it up on CentOS 6.6 with the configs in website.md, and it seems to work. It's set up at http://104.131.157.126/ (which I'll take down in a few days) without the query backend and I can give you access to that server to see how it's set up (if website.md doesn't make sense).

anoopsarkar commented 9 years ago

Thanks, it looks good. What about the lensing-backend.conf for upstart. I assume that needs changing too?

avacariu commented 9 years ago

No, that's completely separate.

anoopsarkar commented 9 years ago

d'oh. you're right. upstart is used to launch the backend and has nothing to do with serving the frontend.

ok. I will merge and update the webserver with master.