diff --git a/.dockerignore b/.dockerignore index d7bd88cf7..0183843a0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,3 @@ -.packager -.packager/** scripts scripts/** .github/ diff --git a/.packager/.godir b/.packager/.godir deleted file mode 100644 index ba2906d06..000000000 --- a/.packager/.godir +++ /dev/null @@ -1 +0,0 @@ -main diff --git a/.packager/Procfile b/.packager/Procfile deleted file mode 100644 index ee1a0f55b..000000000 --- a/.packager/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: ./gogs web -p ${PORT:=3000} diff --git a/.packager/hooks/postinst b/.packager/hooks/postinst deleted file mode 100755 index dcecc7012..000000000 --- a/.packager/hooks/postinst +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -e - -APP_NAME="gogs" -CLI="${APP_NAME}" -APP_USER=$(${CLI} config:get APP_USER) -APP_GROUP=$(${CLI} config:get APP_GROUP) -APP_CONFIG="/etc/${APP_NAME}/conf/app.ini" - -mkdir -p "$(dirname ${APP_CONFIG})" -chown "${APP_USER}"."${APP_GROUP}" "$(dirname ${APP_CONFIG})" -[ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG} -${CLI} config:set USER="${APP_USER}" -sed -i "s|RUN_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG} -sed -i "s|RUN_MODE = dev|RUN_MODE = prod|" ${APP_CONFIG} - -${CLI} config:set GOGS_CUSTOM=/etc/${APP_NAME} - -# scale -${CLI} scale web=1 || true - -# restart the service -service gogs restart || true diff --git a/.pkgr.yml b/.pkgr.yml deleted file mode 100644 index 97d47f655..000000000 --- a/.pkgr.yml +++ /dev/null @@ -1,35 +0,0 @@ -targets: - debian-11: &debian - build_dependencies: - - libpam0g-dev - dependencies: - - libpam0g - - git - debian-12: - <<: *debian - debian-13: - <<: *debian - debian-14: - <<: *debian - ubuntu-18.04: - <<: *debian - ubuntu-20.04: - <<: *debian - ubuntu-22.04: - <<: *debian - ubuntu-24.04: - <<: *debian - centos-9: - build_dependencies: - - pam-devel - # required for Go buildpack - - perl-Digest-SHA - dependencies: - - pam - - git -before: - - mv .packager/Procfile . -after: - - mv bin/gogs gogs -after_install: ./.packager/hooks/postinst -buildpack: https://github.com/heroku/heroku-buildpack-go.git#main diff --git a/docs/getting-started/installation.mdx b/docs/getting-started/installation.mdx index f3c68d0ca..d3ca28f21 100644 --- a/docs/getting-started/installation.mdx +++ b/docs/getting-started/installation.mdx @@ -71,7 +71,6 @@ If you choose to use MySQL or PostgreSQL as your database backend, you need to f |Source| Description | Note| |------|------------------------------------------|-----| - |Packager.io ([link](https://packager.io/gh/gogs/gogs))|Every commit of `main`|After installation, place custom configuration in `/etc/default/gogs`.| |Arch User Repository ([link](https://aur.archlinux.org/packages/gogs/))| Stable releases | Detailed instructions available in the [Arch Linux Wiki entry](https://wiki.archlinux.org/title/Gogs). | diff --git a/go.mod b/go.mod index 7fb3c59d1..fa545a80b 100644 --- a/go.mod +++ b/go.mod @@ -148,6 +148,3 @@ require ( modernc.org/memory v1.11.0 // indirect modernc.org/sqlite v1.39.0 // indirect ) - -// +heroku goVersion go1.26 -// +heroku install ./cmd/gogs