Ghost

npm install ghost fails with code EPERM errno -4048 syscall rename (on Windows)

谁说胖子不能爱 提交于 2019-12-13 06:10:07
问题 During the install of Ghost with npm version 3.8.x, the following errors occur: npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.8 npm WARN Gonzah@0.0.1 No repository field. npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\aosman\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "ghost" npm ERR! node v4.3.2 npm ERR!

GCE LetsEncrypt Error - Cannot locate wrapped file

喜夏-厌秋 提交于 2019-12-13 02:23:29
问题 I am running into an issue with executing 'letsencrypt-auto' on the GCE Bitnami Ghost image. The issue can be reproduced using the base installer below: https://cloud.google.com/launcher/solution/bitnami-launchpad/ghost Here is the command I use, and it's output: sudo wget https://github.com/letsencrypt/letsencrypt/archive/master.zip sudo unzip master.zip cd letsencrypt sudo /opt/bitnami/ctlscript.sh stop sudo ./letsencrypt-auto --debug ..install dependencies... **Reading package lists...

nginx subdomain configuration example.com/blog

大城市里の小女人 提交于 2019-12-12 15:16:17
问题 I've spent all day yesterday and today learning how nginx works and I got two different domains working, one with Ghost blogging platform and a static page (future NodeJS app), now I'm trying to setup the subdomain, but I'm kind of frustrated because I feel like I'm almost there but it's not working... This is my current setup: #Main Domain server { listen 80; listen [::]:80; server_name example.com; root /var/www/portfolio; index index.html; location / { proxy_set_header X-Forwarded-For

What is this Python Icon?

房东的猫 提交于 2019-12-12 03:06:10
问题 Sometimes when I run python scripts in terminal a python instance opens up I've seen matplotlib and ghost cause this. The only way to close it seems to be to close the python terminal. What exactly is this instance and how do I have it close automatically after my script executes? 回答1: On OS X the Dock will display an icon for Python whenever you do something that interacts with the GUI. The most common reason for this is using matplotlib with a GUI backend (e.g. PyQt). When using an

Make Webpack render in a file other than an index

妖精的绣舞 提交于 2019-12-11 06:35:19
问题 By default Webpack looks for a specific index.html file in a specified directory, right? What I want to know is can I tell webpack to look for and inject my bundled files in a file that I specify? I ask this because I'm trying to develop a Ghost theme with webpack and by default, a Ghost theme looks for a default.hbs file to serve as an index file. I tried to use the HtmlWebpackPlugin to set the filename for entry all while making the same file for web pack's output, but it's not working.

新萝卜家园GHOST WIN7系统32,64位官方版下载

孤街浪徒 提交于 2019-12-07 21:20:12
来自系统妈: http://www.xitongma.com 新 萝卜家园 GHOST win7 系统64位官方经典版 V2016年3月 系统概述 新萝卜家园 ghost win7 系统64位官方经典版加快“网上邻居”共享速度;取消不需要的网络服务组件,系统支持Windows安装,可以在Windows中一键安装了,方便了不会COMS设置和GHOST的人。集成了自2015年流行的各种硬件驱动,首次进入系统即全部硬件已安装完毕,通过数台不同硬件型号计算机测试安装均无蓝屏现象,硬件完美驱动。系统经过优化,启动服务经过仔细筛选,确保优化的同时保证系统的稳定,内存消耗低。实用,反应迅速。 新萝卜家园系统主要特点 新萝卜家园电脑城装机版具有更安全、更稳定、更人性化等特点。集成最常用的装机软件,集成最全面的硬件驱动,精心挑选的系统维护工具,加上萝卜独有人性化的设计。是电脑城、个人、公司快速装机之首选!拥有此系统,您也可以轻松成为装机高手! * 使用微软正式发布的WIN7旗舰x64 SP1简体中文版制作,无人值守自动安装,无需输入序列号。 * 安装完成后使用administrator账户直接登录系统,无需手动设置账号。 * 系统使用OEM序列号自动激活,支持自动更新。 * 更新了系统补丁和Office2007所有重要补丁到2016年01月(可通过微软漏洞扫描和360漏洞扫描)。 1

浅谈:node快速搭建个人博客

两盒软妹~` 提交于 2019-12-07 16:34:53
接触web开发不知不觉也有one year了,虽然每天的工作繁重,但是一直有个信念:做个属于自己的网站!!比较容易入手的项目当然属于个人博客了!在这里分享一下我的心得: 1.博客模板--ghost 提到博客,一般的人都会想到WordPress(php的框架)。如果没有php语言基础的话,还是放弃吧。这里我选用了ghost:一款开源的node个人博客平台(体积小,基本功能都有,可以选择不同的主题,扩展性好);可以去ghost中文网 http://www.ghostchina.com/ 最新的版本是ghost 0.7.4,支持最新的node的版本! ghost的文档与api很容易理解,静下心来看看就懂了!最好下载中文集成依赖包的那个版本,毕竟npm下载的依赖包都在国外服务器上,很有可能下载不了! ghost连数据库都有,自带的数据库sqlite( 一款轻型的数据库 ),如果想长期维护数据的话还是换成mysql,ghost里有相应的配置,只需要改一下连接就行! 图片是存储在/content/images/下的,当然也可以借助upyun服务,upyun的图片存储不错的,推荐试试,难道我会说upyun免费送了我one year使用权! 2.服务器--vps 买过域名的人都知道,在国内如果想正常使用;域名都需要经过备案的,十分麻烦!而且国内的服务器的费用也不低,相对于自己的小项目

Ghost博客数据库迁移至MySQL

你说的曾经没有我的故事 提交于 2019-12-07 03:14:14
为什么要迁移数据库? 刚刚开始,这个博客是由Ghost + CentOS7 + sqlite3 搭建的。然而自己对于sqlite3不是特别的熟悉,所以决定,将其迁移至MySQL来。但是在迁移的过程中,还不是那么的顺利,就用笔记记录下来吧。 升级阿里云的配置 之前购买的虚拟云主机是最低配置的,1核 + 512M内存。这个配置基本也就能刚好跑跑一个Ghost。因为当时的内存使用率基本就到了90%左右,所以在安装mysql的时候,直接就报错,内存不够,所以,就把当前的云主机升级为了1核 + 1GB内存。费用由原来的每个月30RMB多到了50RMB多,其他厂家的云主机的价格都感觉差不多,阿里的技术我比较信赖,毕竟在11.11这么大并发的情况下,可能抗住。是一个伟大的公司,值得所有人的敬佩。 升级完后,需要在控制台重启机器,配置才会得到更新,其他的方式,介绍说不可以。 安装mysql 按照以前的方式安装mysql竟然不行了,原因是因为系统是CentOS7的。 如何查看系统的相关信息呢? [cyblogs@iZ94tq694y3Z ~]$ cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) 系统原来是当时买云主机的时候选择的。 回顾一下原来是如何安装mysql on CentOS的 yum install mysql

docker命令、简单创建镜像、dockerfile实战、Dockerfile语法、镜像分层、Volume介绍

帅比萌擦擦* 提交于 2019-12-05 11:49:11
docker的常用命令: docker pull 获取image docker build 创建image docker images 列出image docker run 运行container docker stop 停止container docker rmi 删除image docker ps 列出container docker ps -a 列出container的历史记录 docker rm 【"idlist"】删除contain多个历史记录 docker run -p 8080:80 -d daocolud.io/nginx 运行nginx docker cp index.html ["id"]://usr/share/nginx/html 暂时修改nginx首页 docker commit -m 'fun' ["id"] ['name'] 保存修改的image 创建简单的docker镜像 Dockerfile 1.创建Dockerfiler文件 2.编辑文件,vim Dockerfile 输入: FROM alpine:latest MAINTAINER yrg CMD echo "Hello Docker" 3.创建镜像 docker build -t hello_docker . -t:给镜像一个hello_docker的标签,' . '是一个路径名

Kubernetes学习之pause容器

允我心安 提交于 2019-12-05 06:15:17
根据代码看到,pause容器运行着一个非常简单的进程,它不执行任何功能,一启动就永远把自己阻塞住了, 它的作用就是扮演PID1的角色,并在子进程称为"孤儿进程"的时候,通过调用wait()收割这个子进程,这样就不用担心我们的Pod的PID namespace里会堆满僵尸进程了,这也是为什么kubernetes不随便找个容器,例如Nginx作为父容器,让其他容器加入的原因 共享namespace的意思就是父进程先创建一个namespace,然后其他进程加入到该namespace就共享namespace了 使用pause容器和共享namespace创建Pod 使用docker启动pause进程,以便可以将其他容器添加到Pod中 docker run -d --name pause gcr.io/google_containers/pause-amd64:3.0 然后,在Pod中运行其他容器,分别是Nginx代理和ghost博客应用 Nginx代理的后端配置成http://127.0.0.1:2368,也就是ghost进程监听的地址 ##创建nginx配置文件 vim nginx.conf error_log stderr; events { worker_connections 1024; } http { access_log /dev/stdout combined; server