static site paas
1.0.0
著者: パハズ ブリノフ
リポジトリ: https://github.com/pahaz/static-site-paas/
静的サイトに SAAS が必要ですか?それとも独自の静的サイトホスティングを作成したいですか?このプロジェクトはあなたを助けます!
wget https://raw.githubusercontent.com/pahaz/static-site-paas/master/bootstrap.sh sudo bash bootstrap.sh
次に、ssh キーを追加する必要があります。
sshcommand acl-add static <USERNAME> <KEY_FILE>
または:
カール https://github.com/<GITHUB-USERNAME>.keys | sshcommand acl-add static <GITHUB-USERNAME>
たとえば、サーバーが88.85.211.202
で、DNS 名が8iq.ru
であるとします。サーバーの DNS レコード@ A 88.85.211.202
および* A 88.85.211.202
を追加するだけです。
404 nginx ページが表示されるはずです。
test1.8iq.ru
静的サイトをデプロイしたいと考えています。例をgit clone
て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
次に、 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
デプロイコマンド:
$ git Push static@<サーバー>:<サイトURL> マスター
次に、このサイトを別のサブドメインprod1.8iq.ru
にデプロイできます。
$ git Push [email protected]:prod1.8iq.ru マスター
テンプレートを変更して github リポジトリにpush
たい場合は、オリジンを変更するだけです。
$ git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
本当に必要ですか?静的サイト ジェネレーターの統合のみを目的としています。本当にこのようなケースがある場合は、問題を作成してください。