cstart/Tools/ghpages-mini-fileserver
focused_xy fead9bd0a7 fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
..
_layouts fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
_plugins fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
assets/css fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
Gemfile fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
Gemfile.lock fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
LICENSE fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
LICENSE.md fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
README.md fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
_config.yml fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
index.html fix: 修复子模块错误 2024-10-13 14:34:37 +08:00
prenodes.sh fix: 修复子模块错误 2024-10-13 14:34:37 +08:00

README.md

Github Pages Mini Fileserver

A mini fileserver which runs on top of Github pages

DEMO

https://muink.github.io/ghpages-mini-fileserver.html

Get started

git clone https://github.com/muink/ghpages-mini-fileserver
  • Remove default home folder resources/
rm -rf ghpages-mini-fileserver/resources
  • Set up your home folder like mydepot/
target='mydepot'
# Create directory "<target>"
mkdir ghpages-mini-fileserver/${target}
# Set home folder "<target>" 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
cd ghpages-mini-fileserver
jekyll serve

Add content to your server

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.