https://github.com/loggerhead/myblog
Fast deploy my blog
https://github.com/loggerhead/myblog
Last synced: 3 months ago
JSON representation
Fast deploy my blog
- Host: GitHub
- URL: https://github.com/loggerhead/myblog
- Owner: loggerhead
- Created: 2016-06-05T12:05:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T01:35:26.000Z (over 3 years ago)
- Last Synced: 2025-03-27T13:45:21.727Z (3 months ago)
- Language: Python
- Homepage: https://loggerhead.me
- Size: 2.57 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/loggerhead/myblog)
[](https://microbadger.com/images/loggerhead/myblog)# Server
## Setup1. Put certificates to `/var/www/blog/cert`, including:
```
loggerhead.me.bundle.pem
loggerhead.me.key
loggerhead.me.trusted.crt
```2. `sudo scripts/setup-server.sh`
3. Setup `Secret` in GitHub webhook or `token` in Coding webhook.
4. Append following environments to `.profile`, `.zshrc` or `.bashrc`:```bash
export BLOG_UPDATE_URL="/coding/push"
export BLOG_WEBHOOK_TOKEN="YOUR_SECRET_IN_WEBHOOK"
```## Running
Setup environment variables in `scripts/server-envs.sh`
```bash
scripts/start-server.sh
```# Client
```bash
scripts/setup-client.sh
```