Author: Pahaz Blinov
Repo: https://github.com/pahaz/static-site-paas/
You need a SAAS for static sites? Or you want to create own static site hosting? This project help you!
wget https://raw.githubusercontent.com/pahaz/static-site-paas/master/bootstrap.sh sudo bash bootstrap.sh
Then you need to add your ssh-key:
sshcommand acl-add static <USERNAME> <KEY_FILE>
or:
curl https://github.com/<GITHUB-USERNAME>.keys | sshcommand acl-add static <GITHUB-USERNAME>
For example you have server 88.85.211.202
and DNS name 8iq.ru
.
Just add DNS records @ A 88.85.211.202
and * A 88.85.211.202
for your server.
You should see 404 nginx page.
You want to deploy test1.8iq.ru
static site. Just git clone
an example and make a 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
Then deploy it by 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 -> master
The deploy command:
$ git push static@<server>:<site-url> master
Then you can deploy this site to another subdomain prod1.8iq.ru
:
$ git push [email protected]:prod1.8iq.ru master
If you want to change templates and push
it to your github repository just change an origin:
$ git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
Is it really need? Just for static site generator integration. If you really have this case just create an issue.