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

General improvements and saving notes [v0.4dev] #211

Closed avacariu closed 8 years ago

avacariu commented 8 years ago

General improvements:

New features:

This update will require removing all existing images and containers (make remove-images) because the current version of the database isn't stamped with a version ID, so this code won't be able to apply the migrations.

Note: The [v0.3dev] in the title is the tag I've used for the last commit in this PR so that we can keep track of when stuff in develop was stabilized and is ready for a merge to master, and also so that we can keep the develop branch long-running. Annoyingly enough, you can compare a tag and a branch in GitHub, but you can't create a PR based on it; for whatever reason, PRs only work between branches.

anoopsarkar commented 8 years ago

Is this ready to merge?

avacariu commented 8 years ago

It should be ready; I updated the tag to v0.4dev.

To deploy, it requires deleting the current images/containers and rebuilding, but that's all in the makefile now, so it should just be:

$ make remove-images
$ make dev

The target is called dev just because the deploy target is supposed to deploy to a remote docker daemon, and has some stuff about keys in it. The main server isn't set up for this yet.

One of the commits in here also switched back to using port 8080 so that we can use Apache as a reverse proxy for this site and others.

anoopsarkar commented 8 years ago

Is it worth doing all this deploy to remote container business? It seems complicated and brittle and does not save all that much effort, does it?

avacariu commented 8 years ago

I don't see why it would be brittle. Docker Compose communicates with the Docker daemon over HTTP anyways, and this is just exposing the port and adding SSL certificates.

In terms of saving effort for us, I don't know. I just wanted to test this out to see how it goes (not on the main server), but it's certainly not necessary for deploying what we've currently got; that's why I added two (basically identical) make targets. make dev is all we need right now.

anoopsarkar commented 8 years ago

Should we go ahead and merge this for testing? When we deploy it might be good to stick with port 80 as we sent out emails to several people with the default URL (without 8080).

avacariu commented 8 years ago

All this stuff is functioning properly on the staging server.

In terms of the port, we should just get Apache to act as a reverse proxy and listen on port 80, but leave Nginx within docker listening on 8080 (and probably close port 8080 from the public), so that multiple things can be hosted on the same machine on port 80.

anoopsarkar commented 8 years ago

ok. sounds good. can you update website.md to add the instructions on how to configure apache appropriately. add the text of the conf file(s) so that I can just copy/paste them in to get it working.

avacariu commented 8 years ago

It's documented now.