バージョン管理 - Forgejo - インストール


クラウディア 


1. 概要
2. 準備
3. インストール
4. 参考サイト

1. 概要

 インストールしてみます。

2. 準備

 前提として、「FreeBSD 15.1 RELEASE」で、「postgresql16-server」「mysql84-server」「apache24」インストール・稼働中のマシンです。  あらかじめ、「Forgejo」用のデータベースを「PostgreSQL」上に作成しておきます。

sudo su postgres -c "psql"
 「psql」のプロンプトに対して。

create user forgejo with password '強固なパスワード';

create database forgejobd owner forgejo;

grant all privileges on database forgejobd to forgejo;

3. インストール

 今回は、「pkg」でインストールします。

pkg install -y forgejo
 念のため、インストール時のメッセージを記載しておきます。

[11/13] Installing git-2.53.0...
===> Creating groups
Creating group 'git_daemon' with gid '964'
===> Creating users
Creating user 'git_daemon' with uid '964'
[11/13] Extracting git-2.53.0: 100%
[12/13] Installing git-lfs-3.6.1_18...
[12/13] Extracting git-lfs-3.6.1_18: 100%
[13/13] Installing forgejo-14.0.5_1...
===> Creating groups
Creating group 'git' with gid '211'
===> Creating users
Creating user 'git' with uid '211'
===> Creating homedir(s)
[13/13] Extracting forgejo-14.0.5_1: 100%
=====
Message from git-2.53.0:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
=====
Message from git-lfs-3.6.1_18:

--
To get started with Git LFS, the following commands can be used:

  1. Setup Git LFS on your system. You only have to do this once per
     repository per machine:

     $ git lfs install

  2. Choose the type of files you want to track, for examples all ISO
     images, with git lfs track:

     $ git lfs track "*.iso"

  3. The above stores this information in gitattributes(5) files, so
     that file needs to be added to the repository:

     $ git add .gitattributes

  4. Commit, push and work with the files normally:

     $ git add file.iso
     $ git commit -m "Add disk image"
     $ git push
=====
Message from forgejo-14.0.5_1:

--
Before starting forgejo for the first time, you must set a number of
secrets in the configuration file. For your convenience, a sample file
has been copied to /usr/local/etc/forgejo/conf/app.ini.

You need to replace every occurence of CHANGE_ME in the file with
sensible values. Please refer to the official documentation at
https://forgejo.org for details.

You will also likely need to create directories for persistent storage.
Run
    su -m git -c 'forgejo doctor check'
to check if all prerequisites have been met.
 インストールが終わったら、いったん起動します。

chown -R git:git /usr/local/etc/forgejo

chown -R git:git /var/db/forgejo

sysrc forgejo_enable="YES"

service forgejo start

4. 参考サイト

 本ページは、「Gemini」伍長を参考にさせていただきました。

audiobook.jp
AbemaTV 無料体験
薬屋の独り言
EaseUS
Amazonギフトカード
葬送のフリーレン Prime Video
EMEET 1
ネットオークションの相場、統計、価格比較といえばオークファン
ハイスピードプラン
JETBOY
earthcar(アースカー)
サウンドハウス
U-NEXT
アフィリエイトのアクセストレード
それがだいじWi-Fi
5G CONNECT
ベルリッツ
TikTok Shop 【リピート用プログラム】
損保との違い
【usus ウズウズ】
健康サポート特集