processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

Automate building contributions.txt

Open processing-bugs opened this issue 11 years ago • 14 comments

Issue by REAS Friday Jun 28, 2013 at 20:10 GMT Originally opened as https://github.com/processing/processing-web-archive/issues/211


processing-bugs avatar Jun 09 '14 23:06 processing-bugs

Comment by prisonerjohn Sunday Jun 08, 2014 at 15:36 GMT


@jdf offered to help with this feature if needed.

processing-bugs avatar Jun 09 '14 23:06 processing-bugs

@prisonerjohn Has this happened?

REAS avatar Sep 16 '15 04:09 REAS

Don't think so, @alignedleft?

prisonerjohn avatar Sep 16 '15 15:09 prisonerjohn

@REAS @prisonerjohn We finished the first step of this: now the generate scripts rebuild the contributions text files.

Was the desire to have this rebuilt automatically on a certain time period (as with a cron job)? If so, how often would you like it rebuilt? I may need to enlist help from @benfry on the server side.

scotthmurray avatar Sep 16 '15 20:09 scotthmurray

I think we wanted to built is once a day -- at midnight, for example. I have access to the server if that is what is needed.

REAS avatar Sep 16 '15 21:09 REAS

Super! I have server access as well, but I am new to cron jobs and don't want to break anything.

Are you familiar with how to set that up? I can point you to the right script or shell command to run. Perhaps we could test it on beta for a few days, then repeat it on the live site if there are no issues.

scotthmurray avatar Sep 16 '15 23:09 scotthmurray

@alignedleft Can you explore this again? I think it's important. @jdf might be available to offer advice.

REAS avatar Nov 10 '17 20:11 REAS

I'm still available. :)

jdf avatar Nov 30 '17 19:11 jdf

Yes, please!

benfry avatar Nov 30 '17 19:11 benfry

It might be as straightfoward as running this PHP script once each day: https://github.com/processing/processing-docs/blob/master/generate/contributions_data.php

REAS avatar Nov 30 '17 19:11 REAS

Yes! Well the process has a couple more steps but is still fairly straightforward:

  • Run the script twice, once with v=2 and another with v=3
  • Regenerate the Libraries and Tools pages, which I believe is using this script and that script.

prisonerjohn avatar Nov 30 '17 22:11 prisonerjohn

I can't tell if these instructions are for me or for @alignedleft.

jdf avatar Dec 01 '17 01:12 jdf

ping

jdf avatar Dec 14 '17 01:12 jdf

Not sure, either / or :) Whoever has access to the server and can set up a cron job or some other automated task to call those scripts.

prisonerjohn avatar Dec 14 '17 02:12 prisonerjohn