Ghost 1.x on CentOS 6

1. Prerequisite 安装Ghost之前, 我们需要先安装以下: Nginx Certbot MySQL Migrate Data (db schema) 1.1 Nginx $ yum install -y nginx $ nginx -v $ service nginx status $ vi /etc/nginx/conf.d/ghost.conf // ghost.conf server { listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443 ssl http2; server_name ninoishere.com www.…

Ghost Upgrade on New VPS

VPS 供应商搞特价,于是就买了新的KVM架构的VPS,顺便也把Ghost升级了。 Upload SSH key 拿到VPS第一件事,就是上传SSH Key,以便免密登陆。 ssh-copy-id username@remote_host Ghost Installation 步骤可以参考: Install & Setup (production) NIN: 遗憾的是,ghost-cli 仅支持Ubuntu. ✔ Finishing install process ? Enter your blog URL: https://blog.ninoishere.com ? Enter your MySQL hostname: localhost ? Enter your MySQL username: root // NIN: 需要root账号,以便安装过程中create…

利用dropbox备份ghost blog

Dropbox Developer 依次点击My Apps → Create App → Dropbox API → App folder 在生成的 App 里,点击 Generated access token,生成一串 token 字符串,供dropbox_uploader.sh使用。 Dropbox_uploader // https://github.com/andreafabrizi/Dropbox-Uploader $ wget https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh $ chmod a+x dropbox_uploader.sh // 绑定App $ ./dropbox_uploader.…

Install latest lts via nvm

// Check the latest lts $ nvm ls-remote $ nvm install 4.5.0 $ nvm alias lts 4.5.0 && nvm alias default lts // Check the latest lts $ nvm ls-remote $ nvm install 4.5.0 $ nvm alias lts 4.5.0 && nvm alias default lts…

Add multiple user into Ghost without Email

Generate uuid require("node-uuid"); var uuid = require(''node-uuid''); uuid.v4(); Tonic + npm: node-uuid Add new user $ sqlite3 ghost.db insert into users (id, uuid, name, slug, password, email, image, cover, bio, website, location, accessibility, status, language, meta_title, meta_description, last_login, created_at, created_by, updated_at,…