<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Jacob Samro</title>
        <link>https://samro.in</link>
        <description>Notes on building Chitti, running an engineering team, and the tools I use along the way.</description>
        <lastBuildDate>Sun, 06 Dec 2026 04:55:32 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>Jacob Samro</title>
            <url>https://samro.in/favicon.ico</url>
            <link>https://samro.in</link>
        </image>
        <copyright>All rights reserved 2026</copyright>
        <item>
            <title><![CDATA[Deploy Static Website with NGINX via Caprover]]></title>
            <link>https://samro.in/blog/deploy-static-website-with-nginx-via-caprover</link>
            <guid>https://samro.in/blog/deploy-static-website-with-nginx-via-caprover</guid>
            <pubDate>Mon, 03 Jun 2019 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<p>In this short tutorial let see how you can deploy</p>
<p>Since nginx was known deploying static files. We are going to use nginx for deploying sites.</p>
<ol>
<li>In your existing project. Create a captain-definition file with the following content</li>
</ol>
<div class="code"><div class="code-bar"><span>JSON</span><button class="copy" type="button">Copy</button></div><pre class="language-json"><code class="language-json"><span class="token punctuation">{</span>
  <span class="token property">"schemaVersion"</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>
  <span class="token property">"dockerfilePath"</span><span class="token operator">:</span> <span class="token string">"./Dockerfile"</span>
<span class="token punctuation">}</span>
</code></pre></div>
<ol start="2">
<li>Create a Dockerfile with the following content</li>
</ol>
<div class="code"><div class="code-bar"><span>Dockerfile</span><button class="copy" type="button">Copy</button></div><pre class="language-dockerfile"><code class="language-dockerfile"><span class="token instruction"><span class="token keyword">FROM</span> nginx:alpine</span>
<span class="token instruction"><span class="token keyword">COPY</span> . /usr/share/nginx/html</span>
<span class="token instruction"><span class="token keyword">RUN</span> rm -rf /usr/share/nginx/html/.git # remove git</span>
</code></pre></div>
<p>Now compress the folder and upload to caprover.</p>
<div class="code"><div class="code-bar"><span>Terminal</span><button class="copy" type="button">Copy</button></div><pre class="language-bash"><code class="language-bash"><span class="token function">tar</span> -czf file.tar --exclude file.tar <span class="token builtin class-name">.</span>
</code></pre></div>
<p><img src="/blog/deploy-static-website-with-nginx-via-caprover/upload.png" alt="CapRover's tarball upload panel with file.tar selected and an Upload &amp; Deploy button"></p>
<p>Click on upload and deploy. This will build and publish the site.</p>
<p>You can also deploy using Caprover CLI and other methods here : <a href="https://caprover.com/docs/deployment-methods.html">https://caprover.com/docs/deployment-methods.html</a></p>
<p>Additional Details</p>
<ol>
<li>Make sure your folder has a index.html file</li>
<li>Source code is available at <a href="https://github.com/JacobSamro/caprover-nginx-sample">https://github.com/JacobSamro/caprover-nginx-sample</a></li>
</ol>
<p><em>Originally published on <a href="https://medium.com/@jacobsamro/deploy-static-website-with-nginx-via-caprover-46cb0086b49">Medium</a>.</em></p>]]></content:encoded>
            <author>hi@samro.in (Jacob Samro)</author>
        </item>
        <item>
            <title><![CDATA[React Native : Working with Fonts]]></title>
            <link>https://samro.in/blog/react-native-working-with-fonts</link>
            <guid>https://samro.in/blog/react-native-working-with-fonts</guid>
            <pubDate>Sun, 21 Apr 2019 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<p>Place your fonts on assets/fonts</p>
<p>Append this script to package.json</p>
<div class="code"><div class="code-bar"><span>JSON</span><button class="copy" type="button">Copy</button></div><pre class="language-json"><code class="language-json"><span class="token property">"rnpm"</span><span class="token operator">:</span> <span class="token punctuation">{</span>
  <span class="token property">"assets"</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">"./assets/fonts/"</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre></div>
<p>Then run <code>react-native link</code></p>
<p>Now you can use fonts on your React Native Project</p>
<div class="code"><div class="code-bar"><span>JavaScript</span><button class="copy" type="button">Copy</button></div><pre class="language-js"><code class="language-js"><span class="token literal-property property">productTitle</span> <span class="token operator">:</span> <span class="token punctuation">{</span>
  <span class="token literal-property property">color</span><span class="token operator">:</span> <span class="token string">'#444'</span><span class="token punctuation">,</span>
  <span class="token literal-property property">fontSize</span><span class="token operator">:</span> <span class="token number">16</span><span class="token punctuation">,</span>
  <span class="token literal-property property">fontFamily</span><span class="token operator">:</span> <span class="token string">'OpenSans'</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
</code></pre></div>
<p><strong>Note:</strong> While using custom fonts you can’t assign <strong>fontWeight</strong> or <strong>fontStyle</strong> . It makes the custom font disabled</p>
<p><em>Originally published on <a href="https://medium.com/@jacobsamro/react-native-working-with-fonts-265b73c64e8f">Medium</a>.</em></p>]]></content:encoded>
            <author>hi@samro.in (Jacob Samro)</author>
        </item>
        <item>
            <title><![CDATA[Transferring files from one Server to Another using SSH]]></title>
            <link>https://samro.in/blog/transferring-files-from-one-server-to-another-using-ssh</link>
            <guid>https://samro.in/blog/transferring-files-from-one-server-to-another-using-ssh</guid>
            <pubDate>Sat, 06 Apr 2019 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<p>In this short tutorial lets see how we can transfer files from one server to another using SSH</p>
<p>First login to the destination machine ( the machine where you need to download the file )</p>
<div class="code"><div class="code-bar"><span>Terminal</span><button class="copy" type="button">Copy</button></div><pre class="language-bash"><code class="language-bash"><span class="token function">scp</span> root@127.0.0.1:/home/file.txt file.txt
</code></pre></div>
<p>This will ask you to enter the password. File transfer completes !</p>
<p><strong>root</strong> is the username of the user</p>
<p><strong>127.0.0.1</strong> is the IP of the source machine where the file exits</p>
<p><em>Originally published on <a href="https://medium.com/@jacobsamro/transferring-files-from-one-server-to-another-using-ssh-a8f2a3ceffdc">Medium</a>.</em></p>]]></content:encoded>
            <author>hi@samro.in (Jacob Samro)</author>
        </item>
    </channel>
</rss>