jp.kde.org migration to invent.kde.org and new web server / deployment process

Jumpei Ogawa phanective @ gmail.com
2020年 4月 13日 (月) 14:39:01 BST


Hi Ben,

Thanks for processing this.

As you may read, I talked with Carl about this on #kde-www of webchat
yesterday. Here's what we did and will do:

- I pushed the current source code to invent-migration branch of cgit
<https://cgit.kde.org/websites/jp-kde-org.git/?h=invent-migration>. (So
invent-migration branch of cgit is synced to master of
gitlab.com/kdecommunity/jp.kde.org and invent.kde.org/jogawa/jp-kde-org)
- Carl and you have modified binary-factory-tooling repository so that
invent.kde.org/websites/jp-kde-org would be automatically built.
- You or Carl will migrate the invent-migration branch on cgit to
invent.kde.org for us.

> In terms of Jekyll functionality, does jp.kde.org use any special
> plugins or other modules for it's site?

No, jp.kde.org has no Jekyll plugins for now.
However, I'm considering to add a plugin to generate sitemap.xml in the
future.

Best Regards,
Jumpei


On Mon, Apr 13, 2020 at 4:42 AM Ben Cooksley <bcooksley @ kde.org> wrote:

> On Sun, Apr 12, 2020 at 11:52 PM Jumpei Ogawa <phanective @ gmail.com>
> wrote:
> >
> > Hi Ben,
>
> Hi Jumpei,
>
> >
> > > > As the next step, I want to migrate jp.kde.org's git repository and
> the web server it runs.
> > >
> > > Of course. Currently I believe the repository we deploy is located at
> > > https://cgit.kde.org/websites/jp-kde-org?
> >
> > Thank you.
> > Yes, the content of https://cgit.kde.org/websites/jp-kde-org is
> > deployed currently.
> > This repository on cgit has built files (content generated in Jekyll's
> > _sites/ directory), and it is not the source code.
>
> Ah, I see. Now things make more sense :)
>
> >
> > > > 1. Git repository migration to invent.kde.org
> > > >
> > > > I want to migrate the Git repo from cgit to GitLab (invent.kde.org).
> > > > Here is the repository I migrated:
> https://invent.kde.org/jogawa/jp-kde-org
> > >
> > > Has the history of this been recently synced to the above
> > > websites/jp-kde-org repository?
> >
> > No, invent.kde.org/jogawa/jp-kde-org is synced to
> > gitlab.com/kdecommunity/jp.kde.org, but it is no longer synced to
> > cgit.kde.org/websites/jp-kde-org.
> > Source code is in invent.kde.org/jogawa/jp-kde-org and
> > gitlab.com/kdecommunity/jp.kde.org. Build output is in
> > cgit.kde.org/websites/jp-kde-org now.
>
> Okay.
>
> >
> > Since jp.kde.org now uses Jekyll, source code and deployed code are
> > different and we cannot sync source code repository (invent.kde.org
> > and gitlab.com) and deployment repository (cgit.kde.org).
> > (Sorry, maybe my explanation was unclear.)
> >
> > > > I think this repository should be under
> https://invent.kde.org/websites/.
> > > > Can you transfer the repository? I guess I don't have permission to
> transfer.
> > >
> > > We can arrange for that to be transferred easily enough yes.
> >
> > Thank you.
> >
> > > > Note:
> > > > Actually, I had used GitLab.com to store the source code and cgit to
> deploy the built files because Phabricator-based development was a bit hard
> for me.
> > > > So I imported gitlab.com/kdecommunity/jp.kde.org to
> invent.kde.org/jogawa/jp-kde-org. cgit.kde.org/websites/jp-kde-org.git
> can be discarded after the webserver or deployment process migration (if
> necessary).
> > > >
> > >
> > > As most of our existing systems expect repositories to still exist on
> > > the legacy git.kde.org infrastructure, we keep the repositories
> > > present there (just read only) and have Gitlab (invent.kde.org) mirror
> > > any changes it receives up to git.kde.org.
> >
> > OK, so cgit.kde.org/websites/jp-kde-org.git will not be deleted, will
> it?
>
> Correct. We will need to overwrite it's contents with the new
> repository from Gitlab though.
>
> >
> > > > 2. Migration to the new webserver (or changing deployment process)
> > > >
> > > > Currently, I can deploy the website by pushing to
> cgit.kde.org/websites/jp-kde-org.git. I wonder if we should migrate to
> the new web server or change the deployment process.
> > >
> > > It looks like jp.kde.org is currently using our normal systems and
> > > servers for hosting websites?
> >
> > Maybe yes, but I'm not sure.
> > I don't know what normal systems refer to because I'm not familiar
> > with KDE's infrastructure so much.
> >
> > Several months ago, I saw some .gitlab-ci.yml of Jekyll-based
> > websites, and according to it, those websites are not deployed by
> > pushing to the Git repository on cgit.kde.org, but by a different way.
> > (If I remember correctly, they were deployed by rsync.) That's why I
> > thought I need to migrate the webserver or change the deployment way.
> >
> > If we can keep the current way to deploy, invent.kde.org will have the
> > source code repository of jp-kde-org, and cgit.kde.org will have the
> > repository to store the built files. Their content would be different.
> > I wonder if it is acceptable to you.
>
> Fortunately our new systems are capable of generating Jekyll based
> sites from their source code and then deploying that result (using
> rsync)
> We therefore no longer need the repository that contains the generated
> results that is currently at websites/jp-kde-org
>
> In terms of Jekyll functionality, does jp.kde.org use any special
> plugins or other modules for it's site?
>
> >
> > > > I also want to know if .htaccess works on new webserver because we
> currently use it for the redirection.
> > > > (Configuring redirection by another way is still fine for me.)
> > >
> > > All of our servers use Apache, so .htaccess should continue to
> > > function for the forseeable future yes.
> >
> > OK, then I don't have to rewrite code to redirect.
> >
> > Thank you,
> > Jumpei Ogawa (小川 純平)
>
> Cheers,
> Ben
>
> >
> >
> >
> > On Sun, Apr 12, 2020 at 7:57 PM Ben Cooksley <bcooksley @ kde.org> wrote:
> > >
> > > On Sun, Apr 12, 2020 at 8:25 PM Jumpei Ogawa <phanective @ gmail.com>
> wrote:
> > > >
> > > > Hi,
> > >
> > > Hi Jumpei,
> > >
> > > >
> > > > I'm a contributor to the Japanese community website.
> > > >
> > > > Recently, we have migrated from Capacity to KDE Jekyll Theme.
> (Thanks to Carl Schwan for the help!)
> > > >
> > > > As the next step, I want to migrate jp.kde.org's git repository and
> the web server it runs.
> > >
> > > Of course. Currently I believe the repository we deploy is located at
> > > https://cgit.kde.org/websites/jp-kde-org?
> > >
> > > >
> > > >
> > > > 1. Git repository migration to invent.kde.org
> > > >
> > > > I want to migrate the Git repo from cgit to GitLab (invent.kde.org).
> > > > Here is the repository I migrated:
> https://invent.kde.org/jogawa/jp-kde-org
> > >
> > > Has the history of this been recently synced to the above
> > > websites/jp-kde-org repository?
> > >
> > > >
> > > > I think this repository should be under
> https://invent.kde.org/websites/.
> > > > Can you transfer the repository? I guess I don't have permission to
> transfer.
> > >
> > > We can arrange for that to be transferred easily enough yes.
> > >
> > > >
> > > > Note:
> > > > Actually, I had used GitLab.com to store the source code and cgit to
> deploy the built files because Phabricator-based development was a bit hard
> for me.
> > > > So I imported gitlab.com/kdecommunity/jp.kde.org to
> invent.kde.org/jogawa/jp-kde-org. cgit.kde.org/websites/jp-kde-org.git
> can be discarded after the webserver or deployment process migration (if
> necessary).
> > > >
> > >
> > > As most of our existing systems expect repositories to still exist on
> > > the legacy git.kde.org infrastructure, we keep the repositories
> > > present there (just read only) and have Gitlab (invent.kde.org) mirror
> > > any changes it receives up to git.kde.org.
> > >
> > > >
> > > > 2. Migration to the new webserver (or changing deployment process)
> > > >
> > > > Currently, I can deploy the website by pushing to
> cgit.kde.org/websites/jp-kde-org.git. I wonder if we should migrate to
> the new web server or change the deployment process.
> > >
> > > It looks like jp.kde.org is currently using our normal systems and
> > > servers for hosting websites?
> > >
> > > >
> > > > If we should, can you tell me how to migrate?
> > > >
> > > > I also want to know if .htaccess works on new webserver because we
> currently use it for the redirection.
> > > > (Configuring redirection by another way is still fine for me.)
> > >
> > > All of our servers use Apache, so .htaccess should continue to
> > > function for the forseeable future yes.
> > >
> > > >
> > > > Best Regards,
> > > > Jumpei Ogawa (小川 純平)
> > >
> > > Cheers,
> > > Ben
>


-- 
Jumpei Ogawa (小川 純平)
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://mail.kde.org/pipermail/kde-jp/attachments/20200413/0e17f512/attachment-0001.html>


More information about the Kde-jp mailing list