<?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"><channel><title><![CDATA[GitHub Pages not sourcing the env.sh file]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I was using the <code>main</code> branch of a website repo and noticed it wouldn't publish pages.</p>
<p dir="auto">Turns out the app isn't sourcing the <code>env.sh</code> file as the output below shows after editing the <code>env.sh</code> file and restarting the app.</p>
<pre><code>Connecting...
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH

root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# cat ../data/env.sh 
#!/bin/bash

export BUILD_BRANCH=main
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH

root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# source ../data/env.sh 
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
main
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# 

</code></pre>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.cloudron.io/topic/13230/github-pages-not-sourcing-the-env.sh-file</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 16:22:06 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/13230.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Feb 2025 15:26:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Wed, 05 Feb 2025 20:18:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thanks!</p>
]]></description><link>https://forum.cloudron.io/post/101240</link><guid isPermaLink="true">https://forum.cloudron.io/post/101240</guid><dc:creator><![CDATA[shaunsund]]></dc:creator><pubDate>Wed, 05 Feb 2025 20:18:53 GMT</pubDate></item><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Wed, 05 Feb 2025 09:01:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shaunsund" aria-label="Profile: shaunsund">@<bdi>shaunsund</bdi></a> looks like a bug, I will make a new package with a fix</p>
]]></description><link>https://forum.cloudron.io/post/101206</link><guid isPermaLink="true">https://forum.cloudron.io/post/101206</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 05 Feb 2025 09:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Tue, 04 Feb 2025 20:46:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> Yeah. The git hook would be a better place to read the <code>env.sh</code></p>
]]></description><link>https://forum.cloudron.io/post/101195</link><guid isPermaLink="true">https://forum.cloudron.io/post/101195</guid><dc:creator><![CDATA[shaunsund]]></dc:creator><pubDate>Tue, 04 Feb 2025 20:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Tue, 04 Feb 2025 14:42:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shaunsund" aria-label="Profile: shaunsund">@<bdi>shaunsund</bdi></a> indeed. looks like it is not sourced in the git hooks. cc <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a></p>
]]></description><link>https://forum.cloudron.io/post/101167</link><guid isPermaLink="true">https://forum.cloudron.io/post/101167</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Tue, 04 Feb 2025 14:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Mon, 03 Feb 2025 22:18:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> Looking at the Dockerfile, perhaps the BUILD_BRANCH variable is being erased when supervisord is exec'd?</p>
]]></description><link>https://forum.cloudron.io/post/101144</link><guid isPermaLink="true">https://forum.cloudron.io/post/101144</guid><dc:creator><![CDATA[shaunsund]]></dc:creator><pubDate>Mon, 03 Feb 2025 22:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Mon, 03 Feb 2025 19:09:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joseph" aria-label="Profile: joseph">@<bdi>joseph</bdi></a> I restarted the app several times.</p>
<p dir="auto">A fresh restart gives me:</p>
<pre><code>Reconnecting...
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH

root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# source /app/data/env.sh 
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# echo $BUILD_BRANCH
main
root@e0458cac-c74c-450f-9784-4ef0999b34cb:/app/code# 
</code></pre>
<p dir="auto">Something seems off with the start script - at least when it sources the <code>env.sh</code> file at the start of the container.</p>
]]></description><link>https://forum.cloudron.io/post/101139</link><guid isPermaLink="true">https://forum.cloudron.io/post/101139</guid><dc:creator><![CDATA[shaunsund]]></dc:creator><pubDate>Mon, 03 Feb 2025 19:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to GitHub Pages not sourcing the env.sh file on Mon, 03 Feb 2025 16:00:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shaunsund" aria-label="Profile: shaunsund">@<bdi>shaunsund</bdi></a> the file is sourced in the start up script (ref: <a href="https://git.cloudron.io/packages/githubpages-app/-/blob/master/start.sh?ref_type=heads#L14" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/githubpages-app/-/blob/master/start.sh?ref_type=heads#L14</a> ) . Did you restart the app after you added the export ?</p>
]]></description><link>https://forum.cloudron.io/post/101130</link><guid isPermaLink="true">https://forum.cloudron.io/post/101130</guid><dc:creator><![CDATA[joseph]]></dc:creator><pubDate>Mon, 03 Feb 2025 16:00:22 GMT</pubDate></item></channel></rss>