<?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 Jai on Medium]]></title>
        <description><![CDATA[Stories by Jai on Medium]]></description>
        <link>https://medium.com/@jaikishan.shiv?source=rss-f9b375fe654a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Jai on Medium</title>
            <link>https://medium.com/@jaikishan.shiv?source=rss-f9b375fe654a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:35:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaikishan.shiv/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[How to Deploy React Project on Server using nginx]]></title>
            <link>https://medium.com/@jaikishan.shiv/how-to-deploy-react-project-on-server-using-nginx-49c9c59b6c51?source=rss-f9b375fe654a------2</link>
            <guid isPermaLink="false">https://medium.com/p/49c9c59b6c51</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Jai]]></dc:creator>
            <pubDate>Tue, 07 Dec 2021 18:14:43 GMT</pubDate>
            <atom:updated>2021-12-07T18:14:43.452Z</atom:updated>
            <content:encoded><![CDATA[<p>Requirements:-</p><ol><li>Need <strong>Cloudflare </strong>account for creating an instance or subdomain</li></ol><p>Now we need to create a docker-compose.yml file on the server using nginx</p><pre>version: “3”<br>services:<br> docker-container-name:<br> image: jaidev9910/docker-container-name:v1.9<br> container_name: docker-container-name<br> restart: always<br> environment:<br> API_URL: <a href="https://api.urvan.com.mx/">https://api.jai.com</a>.<br> CURRENCY: USD<br> ports:<br> — “3000:80”</pre><p>nginx setting</p><p>/etc/nginx/sites-available/default</p><pre>#---------------------Reports----------------------</pre><pre>upstream react_ui {<br>        server localhost:3000<br>}<br>server {<br>        listen 80;<br>        listen [::]:80;<br>        server_name subdomain_name;  #! which we are creadted using cloudfare<br>        if ($http_x_forwarded_proto = &quot;http&quot;) {<br>             return 301 <a href="https://$server_name$request_uri/">https://$server_name$request_uri</a>;<br>    }<br>        location / {<br>                     #   limit_req zone=one burst=10;<br>                     #   limit_req_status 429;<br>            proxy_pass <a href="http://payout_reports_ui/">http://</a>react_ui;<br>            proxy_http_version 1.1;<br>            proxy_set_header Upgrade $http_upgrade;<br>            proxy_set_header Connection &#39;upgrade&#39;;<br>            proxy_set_header Host $host;<br>            proxy_cache_bypass $http_upgrade;<br>        }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49c9c59b6c51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django with Supervisor]]></title>
            <link>https://medium.com/@jaikishan.shiv/django-with-supervisor-a7689636930b?source=rss-f9b375fe654a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7689636930b</guid>
            <category><![CDATA[supervisor]]></category>
            <category><![CDATA[django-q]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jai]]></dc:creator>
            <pubDate>Tue, 07 Dec 2021 17:59:31 GMT</pubDate>
            <atom:updated>2021-12-07T18:22:38.146Z</atom:updated>
            <content:encoded><![CDATA[<p>Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. It’s a pre-fork worker model ported from Ruby’s <a href="https://bogomips.org/unicorn/">Unicorn</a> project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resource usage, and fairly speedy.</p><pre><strong>Step : 1</strong><br>$ pip install gunicorn</pre><p>Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems</p><pre><strong>Step : 2</strong><br>$ pip install supervisor<br>$ sudo apt-get install supervisor</pre><pre><strong>Step : 3</strong><br>$ sudo service supervisor restart</pre><p>After running all this above comment need to create:-</p><pre><strong>NOTE — DjangoQ is optional and is used for queue in async API’s</strong></pre><pre><strong>Step : 4</strong><br>$ udo nano /etc/supervisor/conf.d/py_boatzon_bulk_import.conf </pre><p>After creating above file need to mention below code in <strong>py_boatzon_bulk_import.conf</strong></p><pre>[program:py_boatzon_bulk_import]</pre><pre>command=/home/jai/env/bulk_impo/bin/gunicorn /home/jai/Desktop/py_boatzon_bulk_import.wsgi -b :8097</pre><pre>directory=/home/jai/Desktop/py_boatzon_bulk_import<br>autostart=true<br>autorestart=true<br>redirect_stderr=true</pre><pre>stderr_logfile=/home/jai/Desktop/py_boatzon_bulk_import/supervisorlogs/py_boat_import_logs.err.log<br>stdout_logfile=/home/jai/Desktop/py_boatzon_bulk_import/supervisorlogs/py_boat_import_logs.out.log</pre><pre>stderr_logfile_maxbytes=1MB<br>stderr_logfile_backups=10<br>stderr_capture_maxbytes=1MB<br>stderr_events_enabled=false<br>stdout_logfile_maxbytes=1MB<br>stdout_logfile_backups=10<br>stdout_capture_maxbytes=1MB<br>stdout_events_enabled=false</pre><pre><br>[program:djangoq]</pre><pre>command=/home/jai/env/bulk_impo/bin/python3 /home/jai/Desktop/py_boatzon_bulk_import/manage.py qcluster</pre><pre>autostart=true<br>autorestart=true<br>startretries=3</pre><pre>stderr_logfile=/home/jai/Desktop/py_boatzon_bulk_import/supervisorlogs/py_boat_import_logs.err.log<br>stdout_logfile=/home/jai/Desktop/py_boatzon_bulk_import/supervisorlogs/py_boat_import_logs.out.log</pre><pre>stderr_logfile_maxbytes=1MB<br>stderr_logfile_backups=10<br>stderr_capture_maxbytes=1MB<br>stderr_events_enabled=false<br>stdout_logfile_maxbytes=1MB<br>stdout_logfile_backups=10<br>stdout_capture_maxbytes=1MB<br>stdout_events_enabled=false</pre><p>Now we need to run below commands on terminal</p><p>5. sudo supervisorctl reread</p><p>6. sudo supervisorctl update</p><p>8 .sudo supervisorctl status</p><p>— — check status of project— — — — — —</p><p>7. sudo supervisorctl status py_boatzon_bulk_import</p><p>8. sudo supervisorctl status djangoq</p><p>9. restart — —&gt; sudo supervisorctl reload</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7689636930b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>