<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Neo Jang on Medium]]></title>
        <description><![CDATA[Stories by Neo Jang on Medium]]></description>
        <link>https://medium.com/@neo.w.jang?source=rss-1f66ca809176------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rpUvXyIShIGbMy21cjWI1g.jpeg</url>
            <title>Stories by Neo Jang on Medium</title>
            <link>https://medium.com/@neo.w.jang?source=rss-1f66ca809176------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:30:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@neo.w.jang/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Walk-through: How to deploy Django project to Heroku]]></title>
            <link>https://medium.com/@neo.w.jang/walk-through-how-to-deploy-django-project-to-heroku-12104cda2d62?source=rss-1f66ca809176------2</link>
            <guid isPermaLink="false">https://medium.com/p/12104cda2d62</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Neo Jang]]></dc:creator>
            <pubDate>Thu, 31 May 2018 05:52:30 GMT</pubDate>
            <atom:updated>2018-05-31T05:52:30.650Z</atom:updated>
            <content:encoded><![CDATA[<p>Django is a great web framework, using even greater Python language, and Heroku is a fantastic platform for deploying the web applications. Combine them together and the outcome should be unicorns and rainbows. Mostly.</p><p>This is an abridged walk-through on how to deploy a <em>blank</em> Django project to Heroku. Considering my past experiences of meticulously crafted projects failing to go live, I have become very much biased toward isolating &amp; solving simpler problems in the beginning before things get complicated: in this case, the <em>deployment</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yPYuS_pm0bQDengy." /><figcaption>Photo by <a href="https://unsplash.com/@pete13?utm_source=medium&amp;utm_medium=referral">Peter Chamberlain</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article will assume the reader already has an account with Heroku.</p><ol><li>Create New App on Heroku. Mine was given a random name <em>powerful-beach-79323.</em> In the following steps, adjust seasonings to suit your taste.</li><li>Start Django project: $ django-admin startproject powerfulbeach &amp;&amp; cd powerfulbeach.</li><li>Install 2 dependencies: pipenv install django_heroku &amp;&amp; pipenv install gunicorn.</li><li>Configure (1 of 2): echo &quot;web: gunicorn powerfulbeach.wsgi&quot; &gt;&gt; Procfile</li><li>Configure (2 of 2): add 2 lines to settings.py,import django_heroku at the beginning and django_heroku.settings(locals()) at the end.</li><li>Deploy</li></ol><pre>git init<br>heroku git:clone -a powerful-beach-79323<br>git add . <br>git commit -m &#39;Once and done!&#39;<br>git push heroku master<br>git open</pre><p>That’s it! You should now see the Heroku rocket launch on your published website. Now you’re ready to build on this blank project, without worrying about deployment issues later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12104cda2d62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I hosted my developer profile page written in React on GitHub User pages]]></title>
            <link>https://medium.com/@neo.w.jang/how-i-hosted-my-developer-profile-page-written-in-react-on-github-user-pages-a31d3b0eda54?source=rss-1f66ca809176------2</link>
            <guid isPermaLink="false">https://medium.com/p/a31d3b0eda54</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[Neo Jang]]></dc:creator>
            <pubDate>Wed, 21 Mar 2018 18:16:08 GMT</pubDate>
            <atom:updated>2018-03-21T18:18:48.530Z</atom:updated>
            <content:encoded><![CDATA[<p>After completing Web Development Immersive (WDI) course at the General Assembly in Austin in early 2018, one of my first goals was to announce to and connect with the wide world of web, by carving out my own domain. Quickly I found myself tangled up in a deployment knot, exacerbated by my own bullheadedness. Eventually I found the perfect solution that made me so elated that I had to make my first ever blog post to share. How auspicious!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NFZGO7pZlbjDWPnJoj2Xw.jpeg" /><figcaption>Much needed tranquility in the life of a web developer | Photo by <a href="https://unsplash.com/photos/jf9d3gtihQk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Cole Hutson</a> on <a href="https://unsplash.com/search/photos/tea?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Issue</h3><p>GitHub User pages is a very convenient place to host a profile page of any self-respecting web developers. Much of the deployment processes have been streamlined, such as naming the repository as &lt;username&gt;.github.io is just one less thing to worry about. However, such convenience is bound to be based on a lot of otherwise-useful assumptions, which unfortunately cannot cover all corner cases. The main challenge here bringing together 2 wonderful tools — GitHub pages and React.js — is that</p><ul><li>GitHub User pages deploys exclusively from the content of the master branch, and</li><li>React app, by default relies on creating gh-pages branch, from which the deployment happens.</li></ul><p>I had built my profile page using React.js, which proved to be a wonderfully soothing experience. This calm was immediately followed by frantic and botched deployment effort. If you’ve come here, you probably have experienced inexplicably seeing your README document.My situation was made worse by intermittent delays caused by having custom domain name assigned, which warned that any changes may take up to 24+ hours before refresh. In a frenzy, I made frantic changes, which is never the right way to solve a problem. I didn’t know if it was GitHub, Google domains, or even my browser that was caching old versions of the page.</p><p>Once I realized the 2 facts outlined above, the solution proved to be rather simple and elegant. Effectively you have to store the source code in a separate branch that is not master, and use it as a deployment tool instead. The solution courtesy of Aaron Lamb (<a href="https://github.com/facebook/create-react-app/issues/3456">Github</a>) was the final piece of puzzle.</p><h3>Instruction</h3><ol><li>Make another branch that is not the master. ie) development or source. I chose development out of habit, while source may make more sense to others. The choice is yours. This branch will be hold the source code. Going forward, master branch will hold the deployed, mini-fied, production-ready version of your React App.</li><li>Modify this line for deploy option in the package.json file. Effectively, every time npm run deploy is called, the React app will be made production-ready, and be written into the master branch. GitHub pages will read and publish that.</li></ol><pre># package.json<br>:<br>&quot;scripts&quot;: {    <br>    &quot;predeploy&quot;: &quot;npm run build&quot;,    <br>    <strong>&quot;deploy&quot;: &quot;gh-pages -b master -d build&quot;,</strong><br>    &quot;start&quot;: &quot;react-scripts start&quot;,<br>    &quot;build&quot;: &quot;react-scripts build&quot;,<br>    &quot;test&quot;: &quot;react-scripts test --env=jsdom&quot;,<br>    &quot;eject&quot;: &quot;react-scripts eject&quot;<br>},</pre><p>Few gotchas, none of which bothered me enough to look for further work-around:</p><ul><li>Never merge the branch into master, no matter how GitHub may incessantly remind you to make pull request from the other branch, every time the said branch has new commits.</li><li>After npm run deploy is finished publishing your page, and <strong>before</strong> committing the latest source code, be sure to git pull from master branch into your local repository. Otherwise, you’ll see some choice git error barfing.</li></ul><pre>$ git checkout master<br>$ git pull<br>$ git checkout development<br>$ git add &lt;files&gt;<br>$ git commit -m &#39;&lt;Your commit message&gt;&#39;<br>$ git push</pre><ul><li>Also those of us who are obsessed with gaming the daily git commit counts, be very disappointed to know that all the hard work done to your source code will never be reflected on GitHub’s contribution calendar, since all those commits will not be merged to the master branch. You only get 1 commit per deployment.</li><li>If you have a custom domain name that you own and would like to use for this, place the CNAME file inside the public folder of the source code. At the build time, this will make its way to the final production version, and be shown inside GitHub repository settings.</li></ul><pre>$ touch public/CNAME<br>$ echo &quot;&lt;www.yourdomain.com&gt;&quot; &gt;&gt; public/CNAME<br>$ git add public/CNAME<br>$ git commit -m &#39;Add CNAME&#39;<br>$ git push</pre><h3>Epilogue</h3><p>That’s it! I hope this post was useful for your endeavor. If you find any error or better yet, an improvement to the method discussed above, please let me know. Otherwise, be sure to check out the fruit of this laborious process, <a href="http://www.neojang.com./">www.neojang.com.</a> I used React.js to create a Single Page App (SPA), with future plan of eventually it becoming a Progressive Web App (PWA). Although I’m not foolish to think that anyone would <em>install</em> my portfolio page as an app on their mobile devices, it’s been a great learning exercise and certainly keeping with the times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a31d3b0eda54" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>