mirror of
https://codeberg.org/Sonoj/osamc.de
synced 2026-01-10 22:45:31 +01:00
Compare commits
2 Commits
ff27b6888d
...
b654e5eb68
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b654e5eb68 | ||
|
|
8102a1eb7a |
51
README.md
51
README.md
@ -1,33 +1,60 @@
|
|||||||
# osamc.de
|
# https://köln.sonoj.org/
|
||||||
|
|
||||||
This is the root copy of the OSAMC.de website.
|
This is the root copy of the Sonoj Köln website.
|
||||||
The webserver uses it's own git clone of this repository.
|
The webserver uses it's own read-only git clone of this repository.
|
||||||
|
|
||||||
## Main Site
|
## Main Site
|
||||||
|
|
||||||
https://osamc.de/
|
https://köln.sonoj.org/
|
||||||
|
|
||||||
Dates for the next meetings are automatically calculated.
|
Dates for the next meetings are automatically calculated.
|
||||||
For everything else edit the HTML files by hand.
|
For everything else edit the HTML files by hand.
|
||||||
|
|
||||||
## Deploying the website
|
## Deploying the website
|
||||||
|
|
||||||
The server osamc.de updates a local copy of this repository and will rsync changes to the web
|
This website is deployed to our Uberspace as simple read-only https git clone from upstream
|
||||||
directory. Additional sanity checking and security measures are done in this step to prevent
|
Codeberg, which has LFS (see below) We got an out-of-memory error for git lfs for one single file.
|
||||||
(accidental) harmful files on the public webserver.
|
|
||||||
|
On ssh sonoj.org
|
||||||
|
|
||||||
|
First time setup:
|
||||||
|
```
|
||||||
|
cd ~
|
||||||
|
composer require vstelmakh/url-highlight
|
||||||
|
#Later adjust the user home directory in protokolle.php so PHP can find the vendor directory.
|
||||||
|
|
||||||
|
cd domains/xn--kln-sna.sonoj.org
|
||||||
|
|
||||||
|
# 1) clone without LFS smudge (avoids the checkout-time failure)
|
||||||
|
GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 https://codeberg.org/Sonoj/koeln.sonoj.org.git .
|
||||||
|
#or for write access, not on the server:
|
||||||
|
# GIT_LFS_SKIP_SMUDGE=1 git clone --depth 1 ssh://git@codeberg.org/Sonoj/koeln.sonoj.org.git
|
||||||
|
|
||||||
|
|
||||||
|
# 2) reduce LFS memory/parallelism (repo-local)
|
||||||
|
git config --local lfs.concurrenttransfers 1
|
||||||
|
git config --local lfs.transfer.maxretries 10
|
||||||
|
|
||||||
|
# 3) download LFS objects and materialize them into the working tree
|
||||||
|
git lfs pull
|
||||||
|
git lfs checkout
|
||||||
|
```
|
||||||
|
|
||||||
|
Update later:
|
||||||
|
```
|
||||||
|
git pull --ff-only
|
||||||
|
git lfs pull
|
||||||
|
git lfs checkout
|
||||||
|
```
|
||||||
|
|
||||||
## Archive
|
## Archive
|
||||||
|
|
||||||
https://osamc.de/archiv/
|
https://köln.sonoj.org/archiv/
|
||||||
|
|
||||||
Each sub directory is one talk or project.
|
Each sub directory is one talk or project.
|
||||||
Everything that has a metadata.ini file will be parsed by the index generator program.
|
Everything that has a metadata.ini file will be parsed by the index generator program.
|
||||||
Possible index files are index.html index.php and index.pdf
|
Possible index files are index.html index.php and index.pdf
|
||||||
|
|
||||||
## Protocols / Pad
|
|
||||||
|
|
||||||
The collaborative text pad is currently not in this git. #TODO
|
|
||||||
|
|
||||||
## Large File Storage
|
## Large File Storage
|
||||||
|
|
||||||
Since we host large files, like music sessions, in the archive it needs git large file storage for
|
Since we host large files, like music sessions, in the archive it needs git large file storage for
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
<pre> <!-- Keep pure text line breaks -->
|
<pre> <!-- Keep pure text line breaks -->
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$autoloadPath = '/home/meeehgru/vendor/autoload.php';
|
$autoloadPath = '/home/mvsoyrjv/vendor/autoload.php';
|
||||||
|
|
||||||
// Check if autoload.php file exists
|
// Check if autoload.php file exists
|
||||||
if (!file_exists($autoloadPath)) {
|
if (!file_exists($autoloadPath)) {
|
||||||
echo "<p>PHP Configuration changed. The autoload.php file is missing. Please run <code>composer install</code> or <code>composer require vstelmakh/url-highlight</code>. Please inform the osamc.de staff about this problem.</p>";
|
echo "<p>PHP Configuration changed. The autoload.php file is missing. Please run <code>composer install</code> or <code>composer require vstelmakh/url-highlight</code>. Please inform the köln.sonoj.org staff about this problem.</p>";
|
||||||
exit; // Stop script execution
|
exit; // Stop script execution
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ require $autoloadPath;
|
|||||||
|
|
||||||
// Check if UrlHighlight class exists using its fully qualified name
|
// Check if UrlHighlight class exists using its fully qualified name
|
||||||
if (!class_exists('VStelmakh\UrlHighlight\UrlHighlight')) {
|
if (!class_exists('VStelmakh\UrlHighlight\UrlHighlight')) {
|
||||||
echo "<p>PHP Configuration changed. Run <code>composer require vstelmakh/url-highlight</code>. Please inform the osamc.de staff about this problem.</p>";
|
echo "<p>PHP Configuration changed. Run <code>composer require vstelmakh/url-highlight</code>. Please inform the köln.sonoj.org staff about this problem.</p>";
|
||||||
exit; // Stop script execution
|
exit; // Stop script execution
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ use VStelmakh\UrlHighlight\UrlHighlight;
|
|||||||
// Main logic of the script starts here
|
// Main logic of the script starts here
|
||||||
$urlHighlight = new UrlHighlight();
|
$urlHighlight = new UrlHighlight();
|
||||||
|
|
||||||
$files = glob("./protokolle/osamc_*.txt");
|
$files = glob("./protokolle/*.txt");
|
||||||
foreach(array_reverse($files) as $file){
|
foreach(array_reverse($files) as $file){
|
||||||
$path_parts = pathinfo($file);
|
$path_parts = pathinfo($file);
|
||||||
echo "<h2>" . $path_parts['filename'] . "</h2>";
|
echo "<h2>" . $path_parts['filename'] . "</h2>";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user