<?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 Ahmed Hawas on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Hawas on Medium]]></description>
        <link>https://medium.com/@ahmedhawas?source=rss-ec301b3c51f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*88kT6W1rtEOeGtpc.jpg</url>
            <title>Stories by Ahmed Hawas on Medium</title>
            <link>https://medium.com/@ahmedhawas?source=rss-ec301b3c51f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:49:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmedhawas/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[Setting Up Environment Variables in Elixir]]></title>
            <link>https://medium.com/@ahmedhawas/setting-up-environment-variables-in-elixir-4f38b9b3d1c8?source=rss-ec301b3c51f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f38b9b3d1c8</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[phoenix]]></category>
            <dc:creator><![CDATA[Ahmed Hawas]]></dc:creator>
            <pubDate>Sun, 20 Nov 2016 23:31:00 GMT</pubDate>
            <atom:updated>2016-11-20T23:31:00.235Z</atom:updated>
            <content:encoded><![CDATA[<p>I am new to Elixir and decided to create my very first Elixir application using the Phoenix framework. My application uses github for logging and storing my application’s client id and client secret in an environment variable became a requirement when I wanted to push my repo to github publicly.</p><p>Luckily, Elixir makes it very easy to store and access environment variables. In my config.exs file I had the following configuration for github using Ueberauth for authentication.</p><pre>config :ueberauth, Ueberauth.Strategy.Github.OAuth,<br>  client_id: System.get_env(&quot;GITHUB_CLIENT_ID&quot;),<br>  client_secret: System.get_env(&quot;GITHUB_CLIENT_SECRET&quot;)</pre><p>I then created a .env file under the config directory with the following:</p><pre>export GITHUB_CLIENT_ID=&quot;&lt;My Github client id&gt;&quot;<br>export GITHUB_CLIENT_SECRET=&quot;&lt;My Github Client Secret&gt;&quot;</pre><p>I also added <em>config/.env</em> to my <em>.gitignore</em> file to make sure my client id and secret are not committed and pushed to my public repo. Now before running <em>mix phoenix.server </em>I need to run <em>source config/.env</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f38b9b3d1c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>