Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loggerhead/myblog
Fast deploy my blog
https://github.com/loggerhead/myblog
Last synced: about 1 month ago
JSON representation
Fast deploy my blog
- Host: GitHub
- URL: https://github.com/loggerhead/myblog
- Owner: loggerhead
- Created: 2016-06-05T12:05:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T01:35:26.000Z (almost 3 years ago)
- Last Synced: 2023-08-05T17:11:16.138Z (over 1 year ago)
- Language: Python
- Homepage: https://loggerhead.me
- Size: 2.57 MB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Travis Build Status](https://travis-ci.org/loggerhead/myblog.svg?branch=master)](https://travis-ci.org/loggerhead/myblog)
[![Docker image badge](https://images.microbadger.com/badges/image/loggerhead/myblog.svg)](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
```