[Weblate] Re: Weblate can't find GitHub as VCS_REGISTRY item despite hub and GITHUB_USERNAME being set

2020-04-20 Thread Sigurður Guðbrandsson
That was it!!
Thanks Michal.

I'm running the Bitnami installation, and the issue is with the daemon user.

For all future users:
To get GitHub integration to work with the Bitnami installation and hub
snap, you need to do the following:
1. Follow the instructions for setting up GitHub and hub for Weblate

2. Change the home directory for the daemon user to /home/daemon (hub won't
work otherwise)
sudo su - #Login as root
mkdir /home/daemon
chown daemon.daemon /home/daemon
ln -s /opt/bitnami/apps/weblate/weblate/data/home/.config /home/daemon
ln -s /opt/bitnami/apps/weblate/weblate/data/home/.gitconfig /home/daemon
usermod -d /home/daemon daemon
echo 'PATH="/snap/bin/:$PATH"' >> /opt/binami/scripts/setenv.sh
echo 'export PATH' >> /opt/binami/scripts/setenv.sh
exit
3. Restart apache
sudo /opt/bitnami/ctlscript.sh restart apache
4. Enjoy your GitHub integration

To test if the daemon user can run the hub command as the daemon user:
sudo su -s /bin/bash daemon
source /opt/bitnami/scripts/setenv.sh
hub

If you get an error, you need to debug it based on your error.

Kind regards / Kær kveðja,

Sigurður Guðbrandsson | Chief Technical Officer | Website: Guide to Iceland

Email: si...@guidetoiceland.is  Telephone: (+354) 867 3573
___
Weblate mailing list -- weblate@lists.cihar.com
To unsubscribe send an email to weblate-le...@lists.cihar.com


[Weblate] Re: Weblate can't find GitHub as VCS_REGISTRY item despite hub and GITHUB_USERNAME being set

2020-04-19 Thread Michal Čihař via Weblate
Hi

Sigurður Guðbrandsson píše v Pá 17. 04. 2020 v 15:10 +:
> I'm having a problem with adding GitHub as a VCS_REGISTRY item.
> I've followed the instructions for setting up Hub and added the
> GITHUB_USERNAME in settings.py.
> 
> Here's the output from my tests in Django shell:
> 
> 
> I just can't seem to get GitHub as a registry item.
> 
> Any ideas to get GitHub into the VCS_REGISTRY?

Maybe hub is not in the PATH?

I've added tracking such errors in 
https://github.com/WeblateOrg/weblate/commit/474e2ac6ea46ca376653260b2ae575b9e498ed22

-- 
Michal Čihař | https://cihar.com/ | https://weblate.org/




___
Weblate mailing list -- weblate@lists.cihar.com
To unsubscribe send an email to weblate-le...@lists.cihar.com