https://github.com/muink/ghpages-mini-fileserver
A mini fileserver which runs on top of Github pages
https://github.com/muink/ghpages-mini-fileserver
fileserver gh-pages ghpages-fileserver github-pages web webserver weibsite
Last synced: 7 months ago
JSON representation
A mini fileserver which runs on top of Github pages
- Host: GitHub
- URL: https://github.com/muink/ghpages-mini-fileserver
- Owner: muink
- License: mit
- Created: 2023-03-05T09:48:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T11:12:22.000Z (almost 3 years ago)
- Last Synced: 2025-01-10T11:27:03.342Z (over 1 year ago)
- Topics: fileserver, gh-pages, ghpages-fileserver, github-pages, web, webserver, weibsite
- Language: HTML
- Homepage: https://muink.github.io/ghpages-mini-fileserver/
- Size: 2.36 MB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Pages Mini Fileserver
A mini fileserver which runs on top of Github pages
## DEMO
[https://muink.github.io/ghpages-mini-fileserver.html](https://muink.github.io/ghpages-mini-fileserver/)
## Get started
- Setup your Github page here https://pages.github.com/
- Clone ghpages-mini-fileserver
```bash
git clone https://github.com/muink/ghpages-mini-fileserver
```
- Remove default home folder `resources/`
```bash
rm -rf ghpages-mini-fileserver/resources
```
- Set up your home folder like `mydepot/`
```bash
target='mydepot'
# Create directory ""
mkdir ghpages-mini-fileserver/${target}
# Set home folder "" in prenodes.sh
sed -i "s,^\(SERVER_HOME=\).*,\1${target}/," ghpages-mini-fileserver/prenodes.sh
```
- Run `prenodes.sh` every time at file is added to the home folder
- Start Jekyll
```bash
cd ghpages-mini-fileserver
jekyll serve
```
- Open Webbrowser at [http://localhost:4000/](http://localhost:4000/)
## Add content to your server
- Just put your stuff inside the home folder and commit & push
- Open your page at [https://username.github.io/](https://username.github.io/)
## Important
Github will complain if you host binaries and/or very large files. If you upload Binaries compress (Zip) them first and try to not abuse with file size.