initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
42
joplin notion extension/Web Development/Github/codeberg.md
Normal file
42
joplin notion extension/Web Development/Github/codeberg.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
- Hosting static pages
|
||||
1. Create a public repository named pages to make the site available at the main subdomain.
|
||||
or
|
||||
|
||||
Create a branch pages in a public repository:
|
||||
`git switch --orphan pages`
|
||||
`git rm --cached -r . `
|
||||
|
||||
2. Push your static content, HTML, style, fonts, images or anything else.
|
||||
3. Access your new website using this link:
|
||||
https://USERNAME.codeberg.page[/REPOSITORY][/@BRANCH]
|
||||
or
|
||||
To use a custom domain, create a file .domains in your repository with the domain name you wish to use.
|
||||
|
||||
Then, add a DNS record for that domain:
|
||||
CNAME [[branch.]repo.]user.codeberg.page.
|
||||
|
||||
Or for apex domains where CNAME doesn't work:
|
||||
ALIAS codeberg.page.
|
||||
TXT [[branch.]repo.]user.codeberg.page
|
||||
|
||||
If ALIAS isn't supported, use A & AAAA instead:
|
||||
A 217.197.91.145
|
||||
AAAA 2001:67c:1401:20f0::1
|
||||
\+ TXT as above
|
||||
|
||||
4. Example: Repo name: https://broSahru.codeberg.page/test/
|
||||
|
||||
- Hosting react pages
|
||||
Deploy build folder manualluy
|
||||
```bash
|
||||
git init
|
||||
git add .
|
||||
git commit -m "Initial build"
|
||||
git remote add origin your-codeberg-repo-url.git
|
||||
git push -u origin master
|
||||
```
|
||||
Also make sure that in package.json there is a field
|
||||
`"homepage" : "https://broSahru.codeberg.page/test"`
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in a new issue