Choosing the code to run for your component

There are two ways to run a component:

  1. Development mode - runs the component with the latest code in the Translator, whether your changes have been commit or not. This is useful while you are developing your component.

  2. On a specific commit - runs the component with the code saved in a particular commit. This is useful when:

    • You have commit and pushed changes to your repository and want the component to run on the new code.

    • You have made changes to a component in a testing Iguana environment and want to update the production deployed component.

    • You need to revert your component to run on a previous commit.

Selecting a commit:

  • Open your component card and stop the component if it is running.

  • Use the buttons to edit the component commit and open the Select a Commit window.

If you have configured your component as a Plain Folder you may notice another option to select your commit - this option allows you to be able to run this component using another components commit.

  • Select a specific commit you want to run or DEVELOPMENT mode. Click Confirm.

  • Click the green arrow to confirm and see your new commit on the component card.

If you need to view the state of a specific commit, you can select the commit and click view commit to open a read only mode of the Translator.

When the Translator opens in read only mode, you may also notice that the root project file is now run. This is due to the way IguanaX stores your components to run in the two modes: development mode or on a specified commit.

Use the refresh to use Git Cache to pull down the latest commits in your Select a Commit Window. Click and wait for it to stop spinning to see the latest commits.

In the Translator, you can use the DEV Library to programmatically check if the component is set to Development mode.

Â