Your Lair is configured with two hosted environments: development and production. While building your tools in WayScript, you are interacting with your Lair’s development environment. Once your tool is ready for use, it can be deployed to your Lair’s production environment.
Both development and production environments are use WayScript’s base container image (see Lairs for more details), so tools that have been tested on your development environment will have identical execution without any configuration. However, there are a few key operational distinction between development and production environments:
- Triggers are not invoked in development environments. You must use manual invocations and test events in your Lair’s development environment to test your triggers’ functionality. See Triggers for more details.
- Files cannot be directly modified in production environments. Please modify files in your Lair’s development environment and then deploy to your production environment. See File system for more details.
- WayScript will generate different endpoints for your development and production environments. Please ensure you are using the correct endpoint when accessing your tools.
Once your tool has been tested with your Lair’s development environment, simply click “Deploy” to setup a production environment.
After your first deployment, your production environment can be accessed by selecting
<Lair_name>.prod>in the Lair selector menu or by selecting "View Prod" in the Deployments tab of your Lair's toolbar.
External packages can be installed into your Lair’s environments for your tools to access. Packages will be installed in your environments during your Lair’s first process execution and cached for future execution.
External packages must be added to a
requirements.txtfile located at the root level of your Lair directory to persist in your Lair’s hosted environments.
# my-lair-a > requirements.txt
If you install packages using your Lair terminal (e.g., through
pip install) while testing your tools, you can generate your
~/my-lair-a $ pip install pandas
~/my-lair-a $ pip freeze > requirements.txt