<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Openshift on heartnn的自留地</title><link>https://www.heartnn.com/tags/openshift/</link><description>Recent content in Openshift on heartnn的自留地</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><copyright>&amp;copy;2008-2022 heartnn的自留地</copyright><lastBuildDate>Thu, 03 Mar 2016 11:39:12 +0800</lastBuildDate><atom:link href="https://www.heartnn.com/tags/openshift/index.xml" rel="self" type="application/rss+xml"/><item><title>关于Ghost下的301跳转</title><link>https://www.heartnn.com/2015/12/08/ghost-301-redirect/</link><pubDate>Tue, 08 Dec 2015 02:51:05 +0800</pubDate><guid>https://www.heartnn.com/2015/12/08/ghost-301-redirect/</guid><description>&lt;p>借着升级0.7.2，一起解决了non-www向www的域名跳转问题，本来是个很简单的问题，就因为Openshift的特殊性，变的复杂起来。&lt;/p>
&lt;p>如果Google这个问题的话，会有&lt;a href="http://codenimbus.com/2014/01/15/redirecting-www-domain-to-non-www-on-ghost/">www向non-www跳转的解决办法&lt;/a>，并且似乎需要修改&lt;code>core/server/routes/frontend.js&lt;/code>，而且容易引起重定向循环。&lt;/p>
&lt;p>如果用nginx反向代理的话应该会很简答，用Apache的话也可以用&lt;code>.htaccess&lt;/code>解决，但是Openshift里的Nodejs自带的Apache似乎没有mod_rewrite。&lt;/p>
&lt;p>所以结论是在Openshift新建一个php 5.4，利用一下.htaccess。&lt;/p></description></item><item><title>Openshift安装Ghost的注意事项</title><link>https://www.heartnn.com/2015/06/11/install-ghost-on-openshift/</link><pubDate>Thu, 11 Jun 2015 22:12:28 +0800</pubDate><guid>https://www.heartnn.com/2015/06/11/install-ghost-on-openshift/</guid><description>&lt;p>首先是Openshift的二级域名，一定要ping一下对应的IP，如果是通的，那么意味着绑定域名后是可以正常访问的，如果不通的话，则域名必须绑定到Cloudflare这样类似可以提供CDN的域名解析，或者用Cloudflare提供的SSL访问。&lt;/p>
&lt;p>Openshift提供了&lt;a href="https://github.com/openshift-quickstart/openshift-ghost-quickstart">快速部署&lt;/a>，建议使用，如果一定要自己搭建，需要Google补充许多知识，费力费时，得不偿失。Openshift快速部署目前提供的是0.5.10的版本，和目前的最新版没有太大的区别。&lt;/p>
&lt;p>建议使用git方式部署Ghost，方便以后修改模板等。ssh上传速度可能不快，而且以后代码迁移也不如git方便。不过如果图片附件等不使用第三方存储时建议采用此方法。&lt;/p></description></item><item><title>在OpenShift安装Tiny Tiny RSS的注意事项</title><link>https://www.heartnn.com/2015/04/21/tinytinyrss-on-openshift/</link><pubDate>Tue, 21 Apr 2015 00:34:00 +0800</pubDate><guid>https://www.heartnn.com/2015/04/21/tinytinyrss-on-openshift/</guid><description>&lt;p>上个月心血来潮在OpenShift上重新搭建了一个Tiny Tiny RSS，原来的用的是OpenShift提供的快速安装，数据库也是PostgreSQL，程序也比较旧了，干脆删掉重来。&lt;/p>
&lt;p>先挂上一个运行了一个月的截图：&lt;/p>
&lt;p>&lt;img src="https://www.heartnn.com/uploads/2015/04/tt-rss.png" alt="">&lt;/p>
&lt;p>简单叙述一下安装过程，此过程需要一定的git以及OpenShift使用经验。&lt;/p></description></item></channel></rss>