<?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[Environment File Resets After Application Restart]]></title><description><![CDATA[<p dir="auto">Hello Cloudron Support,</p>
<p dir="auto">I have deployed FreeScout on Cloudron and I am experiencing an issue with the .env file configuration.</p>
<p dir="auto">Whenever I modify the .env file and restart the application (or the app restarts automatically), all changes are discarded and the .env file is reset back to the default configuration.</p>
<p dir="auto">This behavior prevents persistent configuration changes and makes it difficult to manage custom environment settings.</p>
<p dir="auto">Steps to reproduce:</p>
<p dir="auto">Open the app terminal / filesystem.<br />
Modify values in the .env file.<br />
Restart the application.<br />
Observe that the .env file is reverted to the default state.</p>
<p dir="auto">Expected behavior:</p>
<p dir="auto">Changes made to the .env file should persist after application restarts.</p>
<p dir="auto">Actual behavior:</p>
<p dir="auto">The .env file is overwritten/reset during restart.</p>
<p dir="auto">Could you please advise:</p>
<p dir="auto">Whether this is expected behavior in the Cloudron FreeScout package.<br />
The correct method/location for persisting custom environment variables.<br />
If there is a supported way to prevent the .env file from being regenerated.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.cloudron.io/topic/15519/environment-file-resets-after-application-restart</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 11:14:42 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15519.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 17 May 2026 06:17:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Environment File Resets After Application Restart on Mon, 18 May 2026 09:58:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/halkhamis" aria-label="Profile: halkhamis">@<bdi>halkhamis</bdi></a><br />
Cloudron does manage all the requirements for apps within itself.<br />
There is no need for an external database.<br />
Can you maybe elaborate why you want to use an external database?</p>
]]></description><link>https://forum.cloudron.io/post/124831</link><guid isPermaLink="true">https://forum.cloudron.io/post/124831</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 18 May 2026 09:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Environment File Resets After Application Restart on Mon, 18 May 2026 09:36:03 GMT]]></title><description><![CDATA[<p dir="auto">The reason I changed the database variables is that I’m using a managed database hosted on AWS/Azure.</p>
]]></description><link>https://forum.cloudron.io/post/124830</link><guid isPermaLink="true">https://forum.cloudron.io/post/124830</guid><dc:creator><![CDATA[halkhamis]]></dc:creator><pubDate>Mon, 18 May 2026 09:36:03 GMT</pubDate></item><item><title><![CDATA[Reply to Environment File Resets After Application Restart on Mon, 18 May 2026 09:06:02 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/halkhamis" aria-label="Profile: halkhamis">@<bdi>halkhamis</bdi></a><br />
Changing the database environment variables is currently not support and set on every start of the app.<br />
Why do you want to change the database connection?</p>
]]></description><link>https://forum.cloudron.io/post/124827</link><guid isPermaLink="true">https://forum.cloudron.io/post/124827</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 18 May 2026 09:06:02 GMT</pubDate></item><item><title><![CDATA[Reply to Environment File Resets After Application Restart on Mon, 18 May 2026 09:04:47 GMT]]></title><description><![CDATA[<p dir="auto">The variables I changed are:</p>
<pre><code>DB_CONNECTION=mysql
DB_HOST=here
DB_PORT=3306
DB_DATABASE=here
DB_USERNAME=here
DB_PASSWORD=here
</code></pre>
]]></description><link>https://forum.cloudron.io/post/124826</link><guid isPermaLink="true">https://forum.cloudron.io/post/124826</guid><dc:creator><![CDATA[halkhamis]]></dc:creator><pubDate>Mon, 18 May 2026 09:04:47 GMT</pubDate></item><item><title><![CDATA[Reply to Environment File Resets After Application Restart on Mon, 18 May 2026 08:15:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/halkhamis" aria-label="Profile: halkhamis">@<bdi>halkhamis</bdi></a></p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/halkhamis" aria-label="Profile: halkhamis">@<bdi>halkhamis</bdi></a> <a href="/post/124814">said</a>:</p>
<p dir="auto">Changes made to the .env file should persist after application restarts.</p>
</blockquote>
<p dir="auto">Yes and No.<br />
It depends on the environment variables you are looking to override.<br />
Certain variables are configured on every app restart by Cloudron to ensure the app is working.</p>
<p dir="auto">For example these variables are always set - <a href="https://git.cloudron.io/packages/freescout-app/-/blob/master/start.sh?ref_type=heads#L51-L60" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/freescout-app/-/blob/master/start.sh?ref_type=heads#L51-L60</a></p>
<pre><code class="language-bash">echo "=&gt; Set configs"
crudini --set /app/data/env "" APP_URL "${CLOUDRON_APP_ORIGIN}"
crudini --set /app/data/env "" APP_FORCE_HTTPS "true"
crudini --set /app/data/env "" DB_CONNECTION "mysql"
crudini --set /app/data/env "" DB_HOST "${CLOUDRON_MYSQL_HOST}"
crudini --set /app/data/env "" DB_PORT "${CLOUDRON_MYSQL_PORT}"
crudini --set /app/data/env "" DB_DATABASE "${CLOUDRON_MYSQL_DATABASE}"
crudini --set /app/data/env "" DB_USERNAME "${CLOUDRON_MYSQL_USERNAME}"
crudini --set /app/data/env "" DB_PASSWORD "${CLOUDRON_MYSQL_PASSWORD}"
crudini --set /app/data/env "" APP_DISABLE_UPDATING "true"
</code></pre>
<p dir="auto">Also when the Cloudron User Management was chosen when the app was installed the following configurations will always be set - <a href="https://git.cloudron.io/packages/freescout-app/-/blob/master/start.sh?ref_type=heads#L116-L139" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/packages/freescout-app/-/blob/master/start.sh?ref_type=heads#L116-L139</a></p>
<pre><code class="language-bash">if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
    echo "=&gt; Configure OIDC"
    OAUTH_PROVIDERS=$(gosu cloudron php &lt;&lt;'EOF'
&lt;?php
    echo addslashes( serialize( [
        [
            'active' =&gt; 1,
            'default' =&gt; 1,
            'provider' =&gt; "oauth",
            'name' =&gt; getenv("CLOUDRON_OIDC_PROVIDER_NAME") ?? "Cloudron",
            'id' =&gt; "cloudron",
            'client_id' =&gt; getenv("CLOUDRON_OIDC_CLIENT_ID"),
            'client_secret' =&gt; getenv("CLOUDRON_OIDC_CLIENT_SECRET"),
            'auth_url' =&gt; getenv("CLOUDRON_OIDC_AUTH_ENDPOINT"),
            'token_url' =&gt; getenv("CLOUDRON_OIDC_TOKEN_ENDPOINT"),
            'user_url' =&gt; getenv("CLOUDRON_OIDC_PROFILE_ENDPOINT"),
            'user_method' =&gt; "POST",
            'proxy' =&gt; "",
            'mapping' =&gt; "",
            'scopes' =&gt; "openid profile email"
        ]
    ] ) );
EOF
    )
</code></pre>
<p dir="auto">So without the detail from you which exact variables you are trying to change, I can only assume they are one of the default sets of Cloudron.</p>
]]></description><link>https://forum.cloudron.io/post/124823</link><guid isPermaLink="true">https://forum.cloudron.io/post/124823</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 18 May 2026 08:15:33 GMT</pubDate></item></channel></rss>