The Configuration Section

The Configuration section enables you to perform configurations for your AppSail services from the console. These configurations can be done through the app-config.json file of your app as well, and then be deployed.

Note: All configurations you do in the app-config.json file will be reflected in this section in the console after you deploy your app.

appsail-startup-1

The steps to configure these values from the console are explained below.

Startup Command

You can configure the startup command for your app, or edit the command already present, from this section. Refer to the Startup Command section for details about this and the help guides section for some examples.

To configure or edit a startup command for your app:

  1. Click the Edit button in the Startup Command section.

appsail-startup-1

  1. Enter the startup command, then click Create.

appsail-startup-2


Environmental Variables

You can create and store environmental variables as key-value pairs for your app outside of the main code, for both the development and production environments. Refer to the Environmental Variables section for details.

To create a new environmental variable:

  1. Click Create Variable in the Environmental Variables section.

appsail-env-1

  1. Enter the keyname of the variable.

appsail-env-2

  1. Click Save.

The variable will be saved and listed in the section. You can use the drop-down on the top to switch between the development and production variables list. That is, if you need to access development variables, select Development from the drop-down.

appsail-env-3

Note: You will be able to add Production variables only if your app has been deployed to production previously.

You can search for variables by their keyname from the search bar, or add more variables.

You can click the Usage Syntax button to check the syntax for each programming environment. This is explained in this section.

appsail-env-4

Edit an Environmental Variable

You can edit an environmental variable’s development or production values in the following way:

  1. Select Development or Production from the drop-down to edit the value in that environment.

  2. Click the ellipsis icon for the variable, then click Edit.

appsail-env-5

  1. Edit the values, then click Save.

appsail-env-6

Note: You will not be able to edit the keyname of a variable.

Delete an Environmental Variable

You can delete the development or the production value of an environmental variable. When you delete it from one environment, the value in the other environment is still available.

To delete the development or the production value of an environmental variable:

  1. Select Development or Production from the drop-down to delete the value from that environment.

  2. Click the ellipsis icon for the variable, then click Remove.

appsail-env-7

  1. Click Yes, Proceed to confirm.

appsail-env-8


Allocated Memory

You can allocate memory for your function’s execution based on its performance requirements, in this section. AppSail allocates a default memory of 256MB for your app. Refer to the Memory Allocation section for details.

To configure the memory allocated for a function:

  1. Navigate to the Allocated Memory tab, then click the edit icon.

appsail-mem-1

  1. Select the required memory for the app from the drop-down, then click the check icon.

appsail-mem-2

Last Updated 2023-09-04 17:11:45 +0530 +0530