This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Convex Self-Hosted — Coolify Docker Compose | |
| # Deploy as a "Docker Compose" resource in Coolify. | |
| # | |
| # After deployment: | |
| # 1. docker compose exec backend ./generate_admin_key.sh | |
| # 2. Set CONVEX_SELF_HOSTED_ADMIN_KEY in your app's .env with the generated key | |
| # 3. Set CONVEX_SELF_HOSTED_URL to the backend URL (SERVICE_URL_BACKEND_3210) | |
| # | |
| # Configuration: | |
| # Set INSTANCE_NAME in Coolify UI to your project name (default: "convex"). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import re | |
| ''' | |
| INSTRUCTIONS | |
| 1. Create a file with the following code | |
| 2. Put the file you want to convert into the same folder as it, and rename it to "py_file.py" | |
| 3. Add a "#F" comment to any lines in the code which have a function call that doesn't assign anything (so no =), | |
| as the program cannot handle these convincingly | |
| 4. Run the converter file |