cmdntd
(cmdntd)
7 במאי, 2025, 6:20am
1
אני לא יכול לגשת לדיון שלי אחרי העדכון האחרון
ועכשיו, אני לא יכול לבנות מחדש את היישום שלי
המחולל עודכן, מתניע מחדש...
נמצא ארכיטקטורה x86_64.
מבטיח שהמחולל מעודכן
מעדכן את המחולל...
מעדכן 721facb..09d5eb6
שגיאה: השינויים המקומיים שלך בקבצים הבאים יישלפו על ידי המיזוג:
image/base/Dockerfile
אנא בצע Commit לשינויים שלך או אחסן אותם לפני שתבצע מיזוג.
מבוטל
העדכון נכשל
Jagster
(Jakke Lehtonen)
7 במאי, 2025, 6:26am
3
אל תערוך ישירות ועשה את מה שמוצע?
cmdntd
(cmdntd)
7 במאי, 2025, 6:28am
4
אני לא עורכת כלום, רק משדרגת את דיסקורס.
איך אוכל לתקן את זה? לא מבינה מה זה מציע.
ההודעה מציגה כי שינית את הקובץ Dockerfile ואתה צריך לבצע התחייבות של השינויים.
זה מוזר כי אמרת שלא שינית אף קובץ.
לייק 1
cmdntd
(cmdntd)
7 במאי, 2025, 7:44am
7
השדרוג שינה את זה אוטומטית. או שזה מתנגש עם המקור החדש (אין שינוי, רק הודעה מזויפת).
/var/discourse# git status
ענף main
הענף שלך מאחור אחר 'origin/main' ב-2 מחויבויות, וניתן לעדכן אותו במהירות.
(השתמש ב"git pull" לעדכון הענף המקומי שלך)
שינויים שאינם מוכנים למחויבות:
(השתמש ב"git add field..." כדי לעדכן את מה שיהיה מחויב)
(השתמש ב"git restore field..." כדי לבטל שינויים בתיקיית העבודה)
שונה: README.md
שונה: discourse-setup
שונה: image/base/Dockerfile
שונה: image/base/install-imagemagick
שונה: launcher
שונה: templates/import/phpbb3.template.yml
שונה: templates/web.template.yml
קבצים לא ניטרליים:
(השתמש ב"git add field..." כדי לכלול במה שיהיה מחויב)
404.html
index.html
אין שינויים שהוספו למחויבות (השתמש ב"git add" ו-"git commit -a")
ובכן, זה מעניין. מה כל השינויים האלה?
אתה יכול לכתוב git diff
cmdntd
(cmdntd)
7 במאי, 2025, 7:49am
9
/var/discourse# git diff
diff --git a/README.md b/README.md
index 6f376b6..465f1b8 100644
--- a/README.md
+++ b/README.md
@@ -10,13 +10,8 @@
## Getting Started
-> Did you know that Discourse also offers affordable hosting options? All of our hosting services directly support the development of Discourse.
->
-> 👉 [Learn more about Discourse hosting](https://discourse.org/pricing)
+The simplest way to get started is via the **standalone** template, which can be installed in 30 minutes or less. For detailed install instructions, see
-The easiest way to get started with self-hosting Discourse is via the standalone template, which can be installed in 30 minutes or less.
-
-For detailed install instructions, check out:
https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md
## Directory Structure
diff --git a/discourse-setup b/discourse-setup
index 5adfe13..4545deb 100755
--- a/discourse-setup
+++ b/discourse-setup
@@ -193,11 +193,11 @@ check_disk_and_memory() {
exit 1
fi
- if [ "$avail_mem" -le 4 ]; then
+ if [ "$avail_mem" -le 2 ]; then
total_swap=`free -g --si | awk ' /Swap:/ {print $2} '`
if [ "$total_swap" -lt 2 ]; then
- echo "WARNING: Discourse requires at least 2GB of swap when running with 4GB of RAM"
+ echo "WARNING: Discourse requires at least 2GB of swap when running with 2GB of RAM"
echo "or less. This system does not appear to have sufficient swap space."
echo
echo "Without sufficient swap space, your site may not work properly, and future"
diff --git a/image/base/Dockerfile b/image/base/Dockerfile
index 66de0df..3eab95a 100644
--- a/image/base/Dockerfile
+++ b/image/base/Dockerfile
@@ -2,11 +2,7 @@
# VERSION: release
ARG DEBIAN_RELEASE=bookworm
-
FROM discourse/ruby:3.3.6-${DEBIAN_RELEASE}-slim AS builder
-ARG DEBIAN_RELEASE
-ENV DEBIAN_RELEASE=${DEBIAN_RELEASE}
-RUN echo "deb http://deb.debian.org/debian ${DEBIAN_RELEASE}-backports main" > "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-backports.list"
RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install wget \
autoconf build-essential \
@@ -66,9 +62,9 @@ RUN --mount=type=tmpfs,target=/var/log \
libtcmalloc-minimal4 cmake \
pngcrush pngquant ripgrep poppler-utils \
# imagemagick runtime dependencies
- ghostscript libjbig0 libtiff6 libpng16-16 libfontconfig1 \
+ libheif1 libjbig0 libtiff6 libpng16-16 libfontconfig1 \
libwebpdemux2 libwebpmux3 libxext6 librsvg2-2 libgomp1 \
- fonts-urw-base35 libheif1/${DEBIAN_RELEASE}-backports \
+ fonts-urw-base35 \
# nginx runtime dependencies \
nginx-common && \
# install these without recommends to avoid pulling in e.g.
diff --git a/image/base/install-imagemagick b/image/base/install-imagemagick
index b1402bd..9ab268e 100755
--- a/image/base/install-imagemagick
+++ b/image/base/install-imagemagick
@@ -14,17 +14,16 @@ WDIR=/tmp/imagemagick
apt -y -q remove imagemagick
apt -y -q install git make gcc pkg-config autoconf curl g++ yasm cmake \
libde265-0 libde265-dev ${LIBJPEGTURBO} libwebp7 x265 libx265-dev libtool \
- libpng16-16 libpng-dev libwebp-dev libgomp1 libaom-dev \
+ libpng16-16 libpng-dev libwebp-dev libgomp1 \
libwebpmux3 libwebpdemux2 ghostscript libxml2-dev libxml2-utils librsvg2-dev \
- libltdl7-dev libbz2-dev gsfonts libtiff-dev libfreetype6-dev libjpeg-dev
+ libltdl7-dev libbz2-dev gsfonts libtiff-dev libfreetype6-dev libjpeg-dev libheif1 libheif-dev
-if cat /etc/issue | grep -qi Debian; then
- # Get VERSION_CODENAME
- . /etc/os-release
- # Use backports
- apt -y -q install libheif1/$VERSION_CODENAME-backports libheif-dev/$VERSION_CODENAME-backports
+# Ubuntu doesn't like backports
+if cat /etc/issue | grep -qiE 'Debian GNU/Linux 12|Ubuntu 22'; then
+ apt -y install libaom-dev
else
- apt -y -q install libheif1 libheif-dev
+ # Use backports instead of compiling it
+ apt -y -q install -t bullseye-backports libaom-dev
fi
mkdir -p $WDIR
diff --git a/launcher b/launcher
index 750ce3b..db2b25c 100755
--- a/launcher
+++ b/launcher
@@ -92,7 +92,7 @@ kernel_min_version='4.4.0'
config_file=containers/"$config".yml
cidbootstrap=cids/"$config"_bootstrap.cid
local_discourse=local_discourse
-image="discourse/base:2.0.20250226-0128"
+image="discourse/base:2.0.20250129-0720"
docker_path=`which docker.io 2> /dev/null || which docker`
git_path=`which git`
@@ -491,7 +491,7 @@ fi
if [ -d /var/discourse/shared/standalone/postgres_data_old ]; then
echo
- echo "Old PostgreSQL backup data cluster detected taking up $(du -hs /var/discourse/shared/standalone/postgres_data_old | awk '{print $1}')"
+ echo "Old PostgreSQL backup data cluster detected taking up $(du -hs /var/discourse/shared/standalone/postgres_data_old | awk '{print $1}') detected"
read -p "Would you like to remove it? (y/N): " -n 1 -r && echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
diff --git a/templates/import/phpbb3.template.yml b/templates/import/phpbb3.template.yml
index 4744620..3b70cf4 100644
--- a/templates/import/phpbb3.template.yml
+++ b/templates/import/phpbb3.template.yml
@@ -1,8 +1,5 @@
# This template installs MariaDB and all dependencies needed for importing from phpBB3.
-env:
- UNICORN_SIDEKIQS: 0
-
params:
home: /var/www/discourse
@@ -11,6 +8,7 @@ hooks:
- exec:
cd: /etc/service
cmd:
+ - rm -R unicorn
- rm -R nginx
- rm -R cron
@@ -18,6 +16,7 @@ hooks:
cd: /etc/runit/3.d
cmd:
- rm 01-nginx
+ - rm 02-unicorn
- file:
path: /etc/mysql/conf.d/import.cnf
diff --git a/templates/web.template.yml b/templates/web.template.yml
index 813a63f..9b541c9 100644
--- a/templates/web.template.yml
+++ b/templates/web.template.yml
@@ -240,7 +240,13 @@ run:
chmod: +x
contents: |
#!/bin/bash
- (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/rails "$@")
+ # If they requested a console, load pry instead
+ if [ "$*" == "c" -o "$*" == "console" ]
+ then
+ (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec pry -r ./config/environment)
+ else
+ (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/rails "$@")
+ fi
- file:
path: /usr/local/bin/rake
(END)
merefield
(Robert)
7 במאי, 2025, 10:01am
10
git reset --hard יוסר את כל השינויים המקומיים שלך, אבל בבקשה וודא שאין שינויים שאתה רוצה לשמור לפני שהרצת את זה.
דרך בטוחה יותר אולי היא פשוט לעשות:
git stash
ואז תוכל להמשיך עם בנייה מלאה דרך ה-CLI.
לייק 1
cmdntd
(cmdntd)
7 במאי, 2025, 2:56pm
11
It seems ok with git reset --hard. But I need to remove discourse-multilingual , this one may cause error.
system
(system)
נסגר ב־
6 ביוני, 2025, 2:56pm
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.