<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ghost on AnyStack</title><link>https://anystack.xyz/tag/ghost/</link><description>Recent content in Ghost on AnyStack</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 16 Aug 2018 15:43:46 +0000</lastBuildDate><atom:link href="https://anystack.xyz/tag/ghost/index.xml" rel="self" type="application/rss+xml"/><item><title>How to upgrade Ghost</title><link>https://anystack.xyz/how-to-upgrade-ghost/</link><pubDate>Thu, 16 Feb 2017 14:21:00 +0000</pubDate><guid>https://anystack.xyz/how-to-upgrade-ghost/</guid><description>&lt;img src="https://anystack.xyz/images/2017/02/Screenshot_8.png" alt="Featured image of post How to upgrade Ghost" /&gt;&lt;p&gt;If you are using a self-hosted Ghost, you may have sometimes to upgrade it to the new release.&#10;To do that, you have at first to download the latest Ghost release.&#10;For that create a new folder next your current Ghost folder and download Ghost :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mkdir newghostfolder &amp;amp;&amp;amp; cd newghostfolder&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget https://ghost.org/zip/ghost-latest.zip&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;unzip ghost-latest.zip&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can make a copy of your current ghost folder and you will have to remove the &lt;code&gt;index.js&lt;/code&gt;, all the &lt;code&gt;.md&lt;/code&gt; and &lt;code&gt;.json&lt;/code&gt; and the &lt;code&gt;core&lt;/code&gt; folder. But do not delete the &lt;code&gt;config.js&lt;/code&gt; file.&#10;Then you will have to stop the current Ghost instance by using :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;forever stop index.js&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Copy the new files over your current folder, and install the new dependencies with :&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;npm install --production&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After than you can restart your instance&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;NODE_ENV=production forever start index.js&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item></channel></rss>