Autor : Pahaz Blinov
Repositorio : https://github.com/pahaz/static-site-paas/
¿Necesita un SAAS para sitios estáticos? ¿O desea crear su propio alojamiento de sitio estático? ¡Este proyecto te ayuda!
wget https://raw.githubusercontent.com/pahaz/static-site-paas/master/bootstrap.sh sudo bash bootstrap.sh
Luego necesitas agregar tu clave ssh:
sshcommand acl-add estático <NOMBRE DE USUARIO> <ARCHIVO_LLAVE>
o:
curl https://github.com/<GITHUB-USERNAME>.keys | sshcommand acl-add estático <GITHUB-NOMBRE DE USUARIO>
Por ejemplo, tiene el servidor 88.85.211.202 y el nombre DNS 8iq.ru Simplemente agregue los registros DNS @ A 88.85.211.202 y * A 88.85.211.202 para su servidor.
Deberías ver la página 404 nginx.
Quiere implementar el sitio estático test1.8iq.ru . Simplemente git clone un ejemplo y haz un git push :
$ git clone https://github.com/pahaz/dokku-static-site.git test1.8iq.ru
Cloning into ' test1.8iq.ru ' ...
remote: Counting objects: 75, done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 75 (delta 23), reused 73 (delta 21), pack-reused 0
Unpacking objects: 100% (75/75), done.
$ cd test1.8iq.ru Luego impleméntelo con git push :
$ git push [email protected]:test1.8iq.ru master
Counting objects: 75, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (71/71), done.
Writing objects: 100% (75/75), 152.88 KiB | 0 bytes/s, done.
Total 75 (delta 23), reused 0 (delta 0)
To 8iq.ru:test1.8iq.ru
* [new branch] master - > masterEl comando de implementación:
$ git push static@<servidor>:<sitio-url> maestro
Luego puedes implementar este sitio en otro subdominio prod1.8iq.ru :
$ git push [email protected]:prod1.8iq.ru maestro
Si desea cambiar las plantillas y push a su repositorio de github, simplemente cambie un origen:
$ git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git¿Es realmente necesario? Sólo para la integración del generador de sitios estáticos. Si realmente tiene este caso, simplemente cree un problema.