<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Steven Yang]]></title><description><![CDATA[Developer. Gamer. //Occasional Daydreamer.]]></description><link>https://www.stevenyang.nz/</link><image><url>https://www.stevenyang.nz/favicon.png</url><title>Steven Yang</title><link>https://www.stevenyang.nz/</link></image><generator>Ghost 2.12</generator><lastBuildDate>Mon, 23 Dec 2019 01:30:55 GMT</lastBuildDate><atom:link href="https://www.stevenyang.nz/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Setting up Ghost revisited]]></title><description><![CDATA[<p>A while back I have written up a brief walkthrough on setting up a NodeJS application on your own EC2 instance, or any VPS.</p><p>The link to the old post is here - <a href="https://www.stevenyang.nz/running-a-nodejs-application-on-ubuntu/">Running a NodeJS Application on Ubuntu</a></p><p>Since then, Ghost has published <a href="https://github.com/TryGhost/Ghost-CLI">Ghost-CLI</a> which made the setting up</p>]]></description><link>https://www.stevenyang.nz/setting-up-ghost/</link><guid isPermaLink="false">5c5424785c66d81f39b6d316</guid><dc:creator><![CDATA[Steven Yang]]></dc:creator><pubDate>Sun, 17 Feb 2019 10:43:05 GMT</pubDate><content:encoded><![CDATA[<p>A while back I have written up a brief walkthrough on setting up a NodeJS application on your own EC2 instance, or any VPS.</p><p>The link to the old post is here - <a href="https://www.stevenyang.nz/running-a-nodejs-application-on-ubuntu/">Running a NodeJS Application on Ubuntu</a></p><p>Since then, Ghost has published <a href="https://github.com/TryGhost/Ghost-CLI">Ghost-CLI</a> which made the setting up process so much smoother on your VPS. With this package You still need Nginx and MySQL installed as prerequisites, but you no long need to configure pm2 to keep the Ghost server running anymore.</p><p>I have listed the steps below for setting up Ghost after I launched an Ubuntu 16.04 EC2 with free tier and also a free tier RDS instance.</p><p>SSH onto your instance and install Nginx</p><pre><code>#install Nginx
sudo apt-get update
sudo apt-get install nginx</code></pre><p>Install <a href="https://github.com/creationix/nvm">nvm</a> and node, nvm gives you more freedom to hop between node versions.</p><pre><code> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
 export NVM_DIR="$HOME/.nvm"
 [ -s "$NVM_DIR/nvm.sh" ] &amp;&amp; \. "$NVM_DIR/nvm.sh"  # This loads nvm
 [ -s "$NVM_DIR/bash_completion" ] &amp;&amp; \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
nvm install 10.15</code></pre><p>Install ghost-cli</p><pre><code>npm install ghost-cli -g</code></pre><p>Create a new web root directory for your new Ghost blog</p><pre><code>cd /var/www/html/
mkdir ghost
ghost install</code></pre><p>Follow the prompted options to configure</p><p>Here is a more detailed guide from ghost-cli. <a href="https://docs.ghost.org/install/ubuntu/">https://docs.ghost.org/install/ubuntu/</a></p>]]></content:encoded></item><item><title><![CDATA["It's Alive!"]]></title><description><![CDATA[<p>Happy 2019!</p><p>I have managed to resurrected my blog for the 100th time. </p><figure class="kg-card kg-image-card"><img src="https://www.stevenyang.nz/content/images/2019/02/its-alive.jpg" class="kg-image"></figure><p>Yep you guessed it, it is new year's resolution time. For me, one of the item on the list is to try leaving as much as digital footprint. I will be posting on side projects I am/</p>]]></description><link>https://www.stevenyang.nz/its-alive/</link><guid isPermaLink="false">5c52cfb65c66d81f39b6d2f2</guid><dc:creator><![CDATA[Steven Yang]]></dc:creator><pubDate>Tue, 15 Jan 2019 11:04:00 GMT</pubDate><content:encoded><![CDATA[<p>Happy 2019!</p><p>I have managed to resurrected my blog for the 100th time. </p><figure class="kg-card kg-image-card"><img src="https://www.stevenyang.nz/content/images/2019/02/its-alive.jpg" class="kg-image"></figure><p>Yep you guessed it, it is new year's resolution time. For me, one of the item on the list is to try leaving as much as digital footprint. I will be posting on side projects I am/will be working on, new things I learn, or maybe just something random.</p><p>So watch this space, as they say.</p>]]></content:encoded></item></channel></rss>