pruga-web
NĂĄstroje pro sprĂĄvu webovĂœch strĂĄnek v ekosystĂ©mu barbaros.
Weby jsou uloĆŸeny v $BARBAROS_HOME jako trunky rodokrug@<domĂ©na>.
KaĆŸdĂœ web obsahuje track master/ se zdrojovĂœmi kĂłdy a samostatnĂœ
track public/ s vygenerovanĂœm obsahem pro HTTP server.
AdresĂĄĆ public obsahuje html, css a javascript soubory.
ObrĂĄzky, multimedia jsou v adresĂĄĆi master/assets a na server se kopĂruje
do samostanĂ©ho tracku assets. Na serveru jsou typicky pro kaĆŸdou domenu tracky public a assets.
V angie je konfigurace pro assets.
domény
Domeny registrujeme u vedosu(odkaz). BalĂÄek pruga-vedos stahuje seznam domĂ©n.
projkety webĆŻ jsou balĂÄky
Weby jsou projekty umĂstÄnĂ© v $BARBAROS_HOME a majĂ jmĂ©no rodokrug@$domain.
VytvoĆĂme projekt pro kaĆŸdĂœ web, kterĂœ hostujeme na vedosu. PĆidĂĄme k domĂ©nÄ www sibdomĂ©nu. JinĂ© subdomĂ©ny musĂĆĄ vytvoĆit zvlĂĄĆĄĆ„.
for domain in vedosDomainsPkgNames(user = "rodokrug"):
echo $domain
# let pkg = dir2name fmt"{PRUGA_WWW_NAMESPACE}@{WWW}.{domain}"
# pkg.init_web_repo()
# pkg.public_web()
rodokrug@www.nim-lang.cz rodokrug@www.barbarostan.org rodokrug@www.domogled.com rodokrug@www.taborpolana.cz rodokrug@www.rodokrug.com rodokrug@www.zivaskola.eu rodokrug@www.kopanistan.net rodokrug@www.xtrip.net rodokrug@www.rodokrug.cz rodokrug@www.barbarostan.eu rodokrug@www.rodokruh.cz rodokrug@www.barbarostan.net rodokrug@www.nim-lang.eu rodokrug@www.zvukohlasek.cz rodokrug@www.rodokrug.org rodokrug@www.barbarostan.cz
public
seznam balĂÄkĆŻ webĆŻ
for pkg in walk(wwwDirectories):
pkg.public_web()
sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 958 speedup is 4,74 sending incremental file list sent 178 bytes received 24 bytes 134,67 bytes/sec total size is 966 speedup is 4,78 sending incremental file list sent 178 bytes received 24 bytes 134,67 bytes/sec total size is 958 speedup is 4,74 sending incremental file list sent 505 bytes received 26 bytes 1.062,00 bytes/sec total size is 583.952 speedup is 1.099,72 sending incremental file list sent 178 bytes received 24 bytes 134,67 bytes/sec total size is 971 speedup is 4,81 sending incremental file list sent 10.252 bytes received 58 bytes 6.873,33 bytes/sec total size is 20.586.372 speedup is 1.996,74 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 966 speedup is 4,78 sending incremental file list sent 178 bytes received 24 bytes 134,67 bytes/sec total size is 504.560 speedup is 2.497,82 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 972 speedup is 4,81 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 960 speedup is 4,75 sending incremental file list sent 2.888 bytes received 39 bytes 1.951,33 bytes/sec total size is 123.928 speedup is 42,34 sending incremental file list sent 8.985 bytes received 26 bytes 6.007,33 bytes/sec total size is 36.472.105 speedup is 4.047,51 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 960 speedup is 4,75 sending incremental file list sent 177 bytes received 24 bytes 134,00 bytes/sec total size is 956 speedup is 4,76 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 974 speedup is 4,82 sending incremental file list sent 723 bytes received 25 bytes 498,67 bytes/sec total size is 2.650.784 speedup is 3.543,83 sending incremental file list sent 197 bytes received 24 bytes 147,33 bytes/sec total size is 3.306 speedup is 14,96 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 972 speedup is 4,81 sending incremental file list sent 178 bytes received 24 bytes 134,67 bytes/sec total size is 959 speedup is 4,75 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 967 speedup is 4,79 sending incremental file list sent 148 bytes received 24 bytes 344,00 bytes/sec total size is 0 speedup is 0,00 sending incremental file list sent 1.470 bytes received 25 bytes 996,67 bytes/sec total size is 3.219 speedup is 2,15 sending incremental file list sent 178 bytes received 24 bytes 404,00 bytes/sec total size is 962 speedup is 4,76 sending incremental file list sent 1.527 bytes received 24 bytes 1.034,00 bytes/sec total size is 4.576.833 speedup is 2.950,89
CLI nĂĄstroje
pruga-web-publicâ sestavenĂ a nasazenĂ webĆŻ na serverpruga-web-init-angieâ vytvoĆenĂ nixos konfigurace pro Angievedos-www-domainsâ vĂœpis domĂ©n
struktura webu
rodokrug@www.pĆĂklad.cz/
âââ master/ # track se zdrojĂĄky
â âââ pages/ # nimib dokumentace
â âââ pkg/ # knihovny
â âââ config/ # nixos konfigurace
â âââ play.fish, make.fish
âââ public/ # track s vĂœstupem pro HTTP server
đ izgotovila â°â±â±â°łâ°° 5.8 2026 23:21