Files
examples/t3/README.md

32 lines
935 B
Markdown
Raw Normal View History

2024-07-13 00:09:36 -06:00
# T3 App Example
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
This repository contains an example of T3 application with mysql database that is deployed on Dokploy.
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
1. **Use Git Provider in Your Application**:
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
- Repository: `https://github.com/Dokploy/examples.git`
- Branch: `main`
- Build path: `/t3`
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
2. **Create a MySQL Database**:
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
- Enter to the database and copy the Internal Connection URL.
2024-07-12 23:52:29 -06:00
2024-07-13 00:10:34 -06:00
3. **Add Environment Variables to your Application**:
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
- Navigate to the "Environments" tab and add the following variable:
```plaintext
DATABASE_URL="the-database-url-you-copied-from-the-previous-step"
```
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
3. **Click on Deploy**:
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
- Deploy your application by clicking the deploy button.
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
4. **Generate a Domain**:
- Click on generate domain button.
- A new domain will be generated for you.
- You can use this domain to access your application.
2024-07-12 23:52:29 -06:00
2024-07-13 00:09:36 -06:00
If you need further assistance, join our [Discord server](https://discord.com/invite/2tBnJ3jDJc).