Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit b81ffd0

Browse files
Merge pull request #207 from appwrite/document-runtime-env
Add docs for activating and disabling function runtimes
2 parents dd7ed63 + 1a15810 commit b81ffd0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/views/docs/functions.phtml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ class MainActivity : AppCompatActivity() {
685685

686686
<p>Appwrite provides multiple code runtimes to execute your custom functions. Each runtime uses a Docker image tied to a specific language version to provide a safe, isolated playground to run your team's code.</p>
687687

688-
<p>Below is a list of supported Cloud Functions runtimes. The Appwrite team continually adds support for new runtimes. You can easily change which runtimes your Appwrite setup supports by editing your server <a href="/docs/environment-variables#functions">environment variables</a>.</p>
688+
<p>Below is a list of supported Cloud Functions runtimes. The Appwrite team continually adds support for new runtimes.</p>
689689

690690
<table cellspacing="0" cellpadding="0" border="0" class="full margin-bottom-large">
691691
<thead>
@@ -708,6 +708,8 @@ class MainActivity : AppCompatActivity() {
708708
</tbody>
709709
</table>
710710

711+
<p>By default, the following runtimes are enabled: "node-16.0, php-8.0, python-3.9, ruby-3.0". To enable or disable runtimes, you can edit the <span class="tag">_APP_FUNCTIONS_RUNTIMES</span> <a href="/docs/functions#environmentVariables">environment variable</a>.</p>
712+
711713
<h2><a href="/docs/functions#environmentVariables" id="environmentVariables">Environment Variables</a></h2>
712714

713715
<p>Environment variables supplied by Appwrite in addition to your own defined environment variables that you can access from your function code. These variables give you information about your execution runtime environment.</p>
@@ -744,6 +746,12 @@ class MainActivity : AppCompatActivity() {
744746
</td>
745747
<td>Either 'event' when triggered by one of the selected scopes, 'http' when triggered by an HTTP request or the Appwrite Console, or 'schedule' when triggered by the cron schedule.</td>
746748
</tr>
749+
<tr>
750+
<td>
751+
_APP_FUNCTIONS_RUNTIMES
752+
</td>
753+
<td>Enables function runtimes. Pass a list of runtime names separated by a comma, for example "node-16.0,php-8.0,python-3.9,ruby-3.0".</td>
754+
</tr>
747755
<tr>
748756
<td>
749757
APPWRITE_FUNCTION_RUNTIME_NAME

0 commit comments

Comments
 (0)