3 Links #
https://khevans.com/2025/09/10/codeberg-migration.html#..needs.forgejo.action
https://codeberg.org/Codeberg/pages-server/wiki/Overview.md
3 Alternatives #
https://eog.prose.sh/srf..links
.
2 Put DRL live on Codeberg #
git init
git add .
git commit -m "Initial 11ty site"
https://codeberg.org/username/my-doctor-website.git
git remote add origin https://codeberg.org/username/my-doctor-website.git
npx @11ty/eleventy
3 Create a pages branch for Codeberg Pages: #
git checkout -b pages
cp -r _site/* .
git add .
git commit -m "Deploy 11ty site"
git push -u origin pages
3 Enable Codeberg Pages #
- Repository Settings → Pages.
- Choose source branch: pages and dir: / (root).
https://username.codeberg.page/my-doctor-website/
3 Custom Domain #
Add a CNAME file in root dir with domain name.
3 Automate Deployment #
cat > /project.dir/deploy.sh <<-EOG
#!/bin/bash
# Build 11ty site
echo "Building 11ty site..."
npx @11ty/eleventy
# Check if "pages" branch exists, and create it if not
git checkout -b pages || git checkout pages
# Remove old files in "pages" branch
echo "Removing old files in 'pages' branch..."
git rm -rf .
# Copy new site content from "_site" to root of branch
cp -r _site/* .
# Commit changes
git add .
git commit -m "Deploy new 11ty site update"
# Push to remote 'pages' branch
git push origin pages
echo "Deployment complete!"
EOG
bash ./deploy.sh
firefox https://username.codeberg.page/my-doctor-website/
last updated:
