The list is not exhaustive, and you may face issues that are not listed here. For the general format to follow when troubleshooting, do refer to the other articles in the Troubleshooting tab.
Overview
Deployment is how your app goes from a live preview URL that is only active for 30 minutes at a time to an always accessible, permanent live link that you can share with friends, colleagues, clients and the world at large. Deployment is essentially moving the code from one “workspace” to another. Here are some common issues you may face, and how to solve them:Issue 1: Missing API Configurations
Imagine you built an app that needs to:- Send emails
- Process payments with Stripe
- Use AI from OpenAI
- Connect to a database
Issue 2: Database Connection Errors
Following the same example from the last issue, you may notice that the data you filled in during the preview stage does not carry over in the deployed app. The reason can be traced back to one key fact: The preview environment and the deployed environment on Emergent are two separate “spaces” - different environment, different databases. When you deploy an app, the settings from one space is summarised and moved to the final deployed space. In this situation, it is vital that we avoid prompting the agent with vague prompts that do not explain the gaps in functionality clearly. Here’s the kind of prompts that will actually help: Scenario 1: Database won’t connectIssue 3: Missing Libraries or Dependancy Issues
Your app is built using various libraries or packages. Each of these libraries are called a “dependancy”. Sometimes when deploying:- The wrong versions of such libraries are used
- The library that is used in the preview environment is different from the library used in the deployed environment
- A library is not installed or incorrectly installed