From 179a7c0bb7513b05c11b946bcf29d4bbacb5d774 Mon Sep 17 00:00:00 2001 From: www-data Date: Wed, 2 Oct 2024 08:29:21 -0300 Subject: [PATCH] first commit --- .bundle/config | 2 ++ .gitignore | 5 +++++ 404.html | 25 +++++++++++++++++++++++++ Gemfile | 8 ++++++++ _config.yml | 12 ++++++++++++ makefile | 23 +++++++++++++++++++++++ pages/index.php | 35 +++++++++++++++++++++++++++++++++++ 7 files changed, 110 insertions(+) create mode 100755 .bundle/config create mode 100755 .gitignore create mode 100755 404.html create mode 100755 Gemfile create mode 100755 _config.yml create mode 100644 makefile create mode 100644 pages/index.php diff --git a/.bundle/config b/.bundle/config new file mode 100755 index 0000000..2369228 --- /dev/null +++ b/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_PATH: "vendor/bundle" diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..f40fbd8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +vendor diff --git a/404.html b/404.html new file mode 100755 index 0000000..086a5c9 --- /dev/null +++ b/404.html @@ -0,0 +1,25 @@ +--- +permalink: /404.html +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100755 index 0000000..5b61378 --- /dev/null +++ b/Gemfile @@ -0,0 +1,8 @@ +source "https://rubygems.org" +gem "jekyll" + +# gem "alice", git: "https://git.alice.ufsj.edu.br/Alice/AliceTheme" +gem "alice", path: "../AliceTheme" + +# group :jekyll_plugins do +# end diff --git a/_config.yml b/_config.yml new file mode 100755 index 0000000..547f9cc --- /dev/null +++ b/_config.yml @@ -0,0 +1,12 @@ +title: Public HTML +description: >- # this means to ignore newlines until "baseurl:" + Write an awesome description for your new site here. You can edit this + line in _config.yml. It will appear in your document head meta (for + Google search results) and in your feed.xml site description. +baseurl: "/s/public_html" # the subpath of your site, e.g. /blog +url: "https://alice.ufsj.edu.br" # the base hostname & protocol for your site, e.g. http://example.com + +header_pages: + - pages/index.php + +theme: alice diff --git a/makefile b/makefile new file mode 100644 index 0000000..20a41dc --- /dev/null +++ b/makefile @@ -0,0 +1,23 @@ +JEKYLL_CMD = bundle exec jekyll + +DEST_PATH = /var/www/html/alice_sites/public_html + +DEST_DIR_FLAGS = --destination=${DEST_PATH} + +BUILD_FLAGS = --trace +SERVE_FLAGS = -H 0.0.0.0 -P 33002 + +all: + sg www-data -c "${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS}" + +deploy: + ${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS} + +# Executa o build toda vez que muda um arquivo +# Rodando como serviço do systemd em /etc/systemd/system/alice-build-watch.service +# examplo: sg www-data -c 'make watch' +watch: + ${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS} -w + +serve: + ${JEKYLL_CMD} serve ${SERVE_FLAGS} diff --git a/pages/index.php b/pages/index.php new file mode 100644 index 0000000..9dff0dc --- /dev/null +++ b/pages/index.php @@ -0,0 +1,35 @@ +Lista de Usuários"; + echo ""; + + // Fecha o diretório + closedir($handle); +} else { + echo "

Não foi possível acessar o diretório.

"; +} +?>