gitenberg-dev / giten_site

django repo for running the GITenberg website
http://www.gitenberg.org
40 stars 5 forks source link

Stevens GITenberg Team - Website Change Log & Discussion #52

Open bdr99 opened 6 years ago

bdr99 commented 6 years ago

We will be using this issue as a central location to discuss the changes that the Stevens GITenberg Team is making.

bdr99 commented 6 years ago

We have created a "stevensberg" branch for our changes to the website.

Last week, we changed the Get Involved page. We removed the mailing list section, because it is already on the home page, and replaced it with links to Github tutorials on YouTube, as well as a link to install Git for Windows, as it does not come pre-installed in Windows.

This week we worked on redesigning the navigation bar. The nav bar is now visible on all pages including the home page. We replaced the "GITenberg" text with our logo, added some links, added a dropdown for the search type (currently has no function), and fixed a CSS bug. We linked to the Get Involved page, but the other two links are planned future pages.

These changes were committed in https://github.com/gitenberg-dev/giten_site/commit/54fbd8bdf4ac7d48e9e7542c55f88a413da2d158.

Screenshot: screenshot

eshellman commented 6 years ago

I would you encourage to:

  1. run tests
  2. add more tests
  3. configure travis-ci to run tests
  4. start requesting merges to master - practice friendly documentation and review
bdr99 commented 6 years ago

We are starting to look into Travis CI, but it says that I do not have sufficient rights to enable it for this repo. @eshellman Is that something that you can do for us? Thanks.

eshellman commented 6 years ago

@bdr99 I have turned on Travis CI for the giten_site repo.

eshellman commented 6 years ago

I have created a branch load_repos_config with a modified config file in .ebextensions. It downloads and unpacks the rdf files from project gutenberg, then runs the load_repos management command. before replacing the running instance. So, to run the management command, I eb deploy the branch. the load_repos command is running right now. Once it finishes, I'll switch back to the master branch and re-deploy. should we need to run it again, we would update the load_repos_config branch and redeploy it.

eshellman commented 6 years ago

And here's how the deploy failed: caused by: WARNING:root:couldn't get wikipedia.summary(The Touchstone) WARNING:root:couldn't get wikipedia.summary(The Drums of Jeopardy (novel)) WARNING:root:couldn't get wikipedia.summary(The Adventure of the Bruce-Partington Plans) WARNING:root:couldn't get wikipedia.summary(The Sea Hawk) WARNING:root:couldn't get wikipedia.summary(Foul Play (novel)) WARNING:root:couldn't get wikipedia.summary(The Woman Who Did) WARNING:root:couldn't get wikipedia.summary(The Border Legion) WARNING:root:couldn't get wikipedia.summary(The Iron Woman (novel)) WARNING:root:couldn't get wikipedia.summary(The Crater (novel)) WARNING:root:couldn't get wikipedia.summary(The Card) Traceback (most recent call last): File "manage.py", line 11, in execute_from_command_line(sys.argv) File "/opt/python/run/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 354, in execute_from_command_line utility.execute() File "/opt/python/run/venv/local/lib/python2.7/site-packages/django/core/management/init.py", line 346, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/python/run/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv self.execute(*args, *cmd_options) File "/opt/python/run/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute output = self.handle(args, **options) File "/opt/python/bundle/4/app/gitensite/apps/bookinfo/management/commands/load_repos.py", line 29, in handle metadata=BookMetadata(Book(book_id=pg_id), rdf_library=rdf_library, enrich=should_enrich) File "/opt/python/run/venv/local/lib/python2.7/site-packages/gitenberg/util/catalog.py", line 54, in init self.parse_rdf() File "/opt/python/run/venv/local/lib/python2.7/site-packages/gitenberg/util/catalog.py", line 64, in parse_rdf raise NotConfigured(e) gitenberg.config.NotConfigured: [Errno 2] No such file or directory: u'/etc/cache/epub/36169/pg36169.rdf' (ElasticBeanstalk::ExternalInvocationError)