HPR is switching to a static site and in today's show Rho`n explains to Ken how to submit changes to the code.
[user@pc fix]$ git clone gitea@repo.anhonesthost.net:rho_n/hpr_generator.git
[user@pc fix]$ cd hpr_generator/
[user@pc hpr_generator]$ git status
[user@pc hpr_generator]$ git checkout -b I70_Fix_links_to_audio
Edit the files. Once complete:
[user@pc hpr_generator]$ git add file/to/commit
[user@pc hpr_generator]$ git commit
[user@pc hpr_generator]$ git push origin I70_Fix_links_to_audio
You can now login to the rho_n/hpr_generator git repo and you should be able to see several branches.
Next to your branch you can press New Pull Request

Review your changes and if you're happy press the green New Pull Request
Fill in the description and a detailed comment
Use the HPR convention [<issue number>] <brief_description> The brief description is usually based on the title of the issue
When Create Pull Request
Full show notes are available.
Show Transcript
Automatically generated using whisper
whisper --model tiny --language en hpr3797.wav
<< First, < Previous, Next >, Latest >>
Comments
Comment #1 posted on 2023-02-22T16:08:34Z by Mechatroniac
Very cool
I don't know how much I could help but it looks like a fun way to learn more about git and what a static website entails as opposed to whatever is in effect now.
I am having trouble finding where to register.
I keep getting 'bad gateway' error here: https://repo.anhonesthost.net/rho_n/hpr_generator
If I go to anhonesthost.net it is an 'Index of' page, where there is a link to cgi-bin, that leads to '403 forbidden' when clicked.
The git clone command run in linux connects but asks for a password.
Where can I sign up to be a member?
Comment #2 posted on 2023-02-22T21:47:48Z by norrist
Repo Location
It looks like we killed repo.anhonesthost.net.
Can the hpr_generator repo be moved to gitlab.com? Moving the repo would eliminate the need for an additional read only mirror, and we could take advantage to gitlab's CICD.
Comment #3 posted on 2023-02-24T21:23:02Z by norrist
Automated build on Gitlab
I was able to get Gitlab CICD to build the HPR static site.
First step was creating a mirror of the HPR generator repo:
git clone gitea@repo.anhonesthost.net:rho_n/hpr_generator.git
git remote add gitlab_mirror git@gitlab.com:norrist/hpr_generator_mirror.git
git push gitlab_mirror main
Then I created a Gitlab CICD pipeline to:
- check out the hpr site generator from the mirror
- load the HPR daily mysql dump into a mysql database
- build the site
- publish to gitlab pages.
The CI project is https://gitlab.com/norrist/hpr_generator_build
The build is published at https://norrist.gitlab.io/hpr_generator_build/
Comment #4 posted on 2023-02-25T12:25:08Z by rho`n
Sweet! nice work norrist
I was thinking of having a mirror on Gitlab or my own Gitea instance, but now that you've done the heavy lifting.... ;)
One minor modification to your site.cfg and your Gitlab pages will have the audio files and transcripts pointing to the correct spot on archive.org
media_baseurl: https://archive.org/download/hpr$eps_id/
Comment #5 posted on 2023-02-25T12:36:00Z by rho`n
RE: Registering at https://repo.anhonesthost.net
Hi Mechatronic, if you goto https://repo.anhonesthost.net -- at the top right of the page there is a register button which takes you to a form to fill out.
It is not an automated process. It may take a day or two for your registration request to be processed.
I am looking into mirroring in a public location, just haven't made time to do that yet
<< First, < Previous, Next >, Latest >>
Leave Comment
Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.
Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).